]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-net: free bufs correctly on invalid packet length
authorMichael Dalton <mwdalton@google.com>
Thu, 5 Dec 2013 21:14:05 +0000 (13:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Dec 2013 21:31:43 +0000 (16:31 -0500)
commitfbdd3a0b78c68961323034395f58931808bb7116
tree42acca7d11c900abc8e45b2d1515e958e6cd4ca6
parent065918b6e3bfbe5da1f187c78caa25f79b7a04fe
virtio-net: free bufs correctly on invalid packet length

When a packet with invalid length arrives, ensure that the packet
is freed correctly if mergeable packet buffers and big packets
(GUEST_TSO4) are both enabled.

Signed-off-by: Michael Dalton <mwdalton@google.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Acked-by: Andrew Vagin <avagin@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c