[patch 19/27] CASSINI: Set skb->truesize properly on receive packets.

Greg KH
2008-02-02T00:31:09Z

[-- Attachment #1: cassini_3.patch --]
[-- Type: text/plain, Size: 767 bytes --]

2.6.22-stable review patch. If anyone has any objections, please let us
know.

------------------
From: David Miller <davem@davemloft.net>

[ 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>

---
drivers/net/cassini.c | 1 +
1 file changed, 1 insertion(+)

--- a/drivers/net/cassini.c
+++ b/drivers/net/cassini.c
@@ -2037,6 +2037,7 @@ static int cas_rx_process_pkt(struct cas

skb_shinfo(skb)->nr_frags++;
skb->data_len += hlen - swivel;
+ skb->truesize += hlen - swivel;
skb->len += hlen - swivel;

get_page(page->buffer);

--