diff options
author | David S. Miller <davem@davemloft.net> | 2008-01-23 02:44:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-23 06:11:40 -0500 |
commit | 1e34a11d55c9437775367d72ad03f9af99e78bd0 (patch) | |
tree | d2b2daf8f433ae851faaf007ce9e6b0b33427cf0 | |
parent | 4c93566e2a61b48ef071a8d8a8fa9904c83a668e (diff) |
[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 <davem@davemloft.net>
-rw-r--r-- | net/ipv4/ip_output.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index fd99fbd685ea..480469b92aa7 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, | |||
1172 | 1172 | ||
1173 | skb->len += len; | 1173 | skb->len += len; |
1174 | skb->data_len += len; | 1174 | skb->data_len += len; |
1175 | skb->truesize += len; | ||
1176 | atomic_add(len, &sk->sk_wmem_alloc); | ||
1175 | offset += len; | 1177 | offset += len; |
1176 | size -= len; | 1178 | size -= len; |
1177 | } | 1179 | } |