]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
CASSINI: Set skb->truesize properly on receive packets.
authorDavid Miller <davem@davemloft.net>
Fri, 11 Jan 2008 09:38:38 +0000 (01:38 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 Feb 2008 20:01:27 +0000 (12:01 -0800)
[ 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

index ec8402ea39873a7b0248c4d95e8b919bc9c005ee..0883112e9b330af640aa837606c26bfb474492ee 100644 (file)
@@ -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);