https://github.com/torvalds/linux
Revision 3d62b2a0db505bbf9ed0755f254e45d775f9807f authored by Jason Wang on 22 May 2018, 03:44:31 UTC, committed by David S. Miller on 23 May 2018, 17:36:19 UTC
We need to drop refcnt to xdp_page if we see a gso packet. Otherwise
it will be leaked. Fixing this by moving the check of gso packet above
the linearizing logic. While at it, remove useless comment as well.

Cc: John Fastabend <john.fastabend@gmail.com>
Fixes: 72979a6c3590 ("virtio_net: xdp, add slowpath case for non contiguous buffers")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 850e088
History
Tip revision: 3d62b2a0db505bbf9ed0755f254e45d775f9807f authored by Jason Wang on 22 May 2018, 03:44:31 UTC
virtio-net: fix leaking page for gso packet during mergeable XDP
Tip revision: 3d62b2a

back to top