]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
macvtap: zerocopy: fix truesize underestimation
authorJason Wang <jasowang@redhat.com>
Wed, 2 May 2012 03:41:44 +0000 (11:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:30:34 +0000 (10:30 -0700)
commitbfd1678ca0143060686d87ae0c07bebab6f0245b
tree9b7a27a90e3251f4c7fd73ba7762b5f44a6e842e
parent2b9ec261e3f247dc84b50263564778bcbefec79b
macvtap: zerocopy: fix truesize underestimation

commit 4ef67ebedffa44ed9939b34708ac2fee06d2f65f upstream.

As the skb fragment were pinned/built from user pages, we should
account the page instead of length for truesize.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/macvtap.c