summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Miller <davem@davemloft.net>2008-01-11 01:38:38 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2008-02-08 12:01:27 -0800
commitb525b62619750d38b4135d39f82ae89ff89ef935 (patch)
treee66e05f4fc1b99209fd9e6e73de9b3a2f69f9a60
parent89a863418881cbf988823803b7bc0dd0a8f20df8 (diff)
downloadlinux-stable-b525b62619750d38b4135d39f82ae89ff89ef935.tar.gz
linux-stable-b525b62619750d38b4135d39f82ae89ff89ef935.tar.bz2
linux-stable-b525b62619750d38b4135d39f82ae89ff89ef935.zip
CASSINI: Set skb->truesize properly on receive packets.
[ Upstream commit: d011a231675b240157a3c335dd53e9b849d7d30d ] skb->truesize was not being incremented at all to reflect the page based data added to RX SKBs. Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/net/cassini.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/cassini.c b/drivers/net/cassini.c
index ec8402ea3987..0883112e9b33 100644
--- a/drivers/net/cassini.c
+++ b/drivers/net/cassini.c
@@ -2037,6 +2037,7 @@ static int cas_rx_process_pkt(struct cas *cp, struct cas_rx_comp *rxc,
skb_shinfo(skb)->nr_frags++;
skb->data_len += hlen - swivel;
+ skb->truesize += hlen - swivel;
skb->len += hlen - swivel;
get_page(page->buffer);