]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_net: fix truesize underestimation
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 19 Oct 2011 23:14:46 +0000 (23:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Oct 2011 06:53:00 +0000 (02:53 -0400)
commit8894bde8b9b73289b9a7fa4c8c652919d692bc07
tree9cee8374f965ade07d0ef9479e93af493ccaa32e
parent66550048e34a0b40be894c94600289b0d8e8893c
virtio_net: fix truesize underestimation

We must account in skb->truesize, the size of the fragments, not the
used part of them.

Doing this work is important to avoid unexpected OOM situations.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Rusty Russell <rusty@rustcorp.com.au>
CC: "Michael S. Tsirkin" <mst@redhat.com>
CC: virtualization@lists.linux-foundation.org
CC: Krishna Kumar <krkumar2@in.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c