Skip to content

Commit

Permalink
[IPV4]: Add missing skb->truesize increment in ip_append_page().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Jan 23, 2008
1 parent 4c93566 commit 1e34a11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/ipv4/ip_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1e34a11

Please sign in to comment.