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
Raw File
test_override_return.sh
#!/bin/bash

rm -f testfile.img
dd if=/dev/zero of=testfile.img bs=1M seek=1000 count=1
DEVICE=$(losetup --show -f testfile.img)
mkfs.btrfs -f $DEVICE
mkdir tmpmnt
./tracex7 $DEVICE
if [ $? -eq 0 ]
then
	echo "SUCCESS!"
else
	echo "FAILED!"
fi
losetup -d $DEVICE
back to top