From: David S. Miller Date: Wed, 23 Jan 2008 07:44:31 +0000 (-0800) Subject: [IPV4]: Add missing skb->truesize increment in ip_append_page(). X-Git-Tag: v2.6.24~10^2~7 X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=1e34a11d55c9437775367d72ad03f9af99e78bd0;p=linux-2.6-omap-h63xx.git [IPV4]: Add missing skb->truesize increment in ip_append_page(). And as noted by Takahiro Yasui, we thus need to bump the sk->sk_wmem_alloc at this spot as well. Signed-off-by: David S. Miller --- diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index fd99fbd685e..480469b92aa 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c @@ -1172,6 +1172,8 @@ ssize_t ip_append_page(struct sock *sk, struct page *page, skb->len += len; skb->data_len += len; + skb->truesize += len; + atomic_add(len, &sk->sk_wmem_alloc); offset += len; size -= len; }