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
File Mode Size
.gitignore -rw-r--r-- 44 bytes
Kconfig -rw-r--r-- 3.4 KB
Makefile -rw-r--r-- 4.1 KB
blacklist.c -rw-r--r-- 4.0 KB
blacklist.h -rw-r--r-- 83 bytes
blacklist_hashes.c -rw-r--r-- 166 bytes
blacklist_nohashes.c -rw-r--r-- 122 bytes
system_certificates.S -rw-r--r-- 956 bytes
system_keyring.c -rw-r--r-- 7.5 KB

back to top