From: David S. Miller Date: Fri, 4 Jan 2008 08:03:56 +0000 (-0800) Subject: [CASSINI]: Set skb->truesize properly on receive packets. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d011a231675b240157a3c335dd53e9b849d7d30d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [CASSINI]: Set skb->truesize properly on receive packets. skb->truesize was not being incremented at all to reflect the page based data added to RX SKBs. Signed-off-by: David S. Miller --- diff --git a/drivers/net/cassini.c b/drivers/net/cassini.c index 33ac2ef67778..544ab0bb174c 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);