Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ae60b3f authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

sky2: fix skb truesize underestimation



sky2 allocates a page per skb fragment. We must account
PAGE_SIZE increments on skb->truesize, not the actual frag length.

Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 98a045d7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2486,7 +2486,7 @@ static void skb_put_frags(struct sk_buff *skb, unsigned int hdr_space,


			frag->size = size;
			frag->size = size;
			skb->data_len += size;
			skb->data_len += size;
			skb->truesize += size;
			skb->truesize += PAGE_SIZE;
			skb->len += size;
			skb->len += size;
			length -= size;
			length -= size;
		}
		}