projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c93566
)
[IPV4]: Add missing skb->truesize increment in ip_append_page().
author
David S. Miller
<davem@davemloft.net>
Wed, 23 Jan 2008 07:44:31 +0000
(23:44 -0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 23 Jan 2008 11:11:40 +0000
(
03:11
-0800)
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 <davem@davemloft.net>
net/ipv4/ip_output.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/ip_output.c
b/net/ipv4/ip_output.c
index fd99fbd685ea9512cc03aa57db5347d34dd1e2cb..480469b92aa7c7b029a243373bfe55deba21d508 100644
(file)
--- 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;
}