diff options
author | Jason Wang <[email protected]> | 2018-05-22 11:44:31 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-05-23 13:36:19 -0400 |
commit | 3d62b2a0db505bbf9ed0755f254e45d775f9807f (patch) | |
tree | b3483469c110e3f8256b77efc2e66c2a5be1c6c3 /lib/mpi/mpiutil.c | |
parent | 850e088d5bbb333342fd4def08d0a4035f2b7126 (diff) |
virtio-net: fix leaking page for gso packet during mergeable XDP
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 <[email protected]>
Fixes: 72979a6c3590 ("virtio_net: xdp, add slowpath case for non contiguous buffers")
Signed-off-by: Jason Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions