Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203479
b: refs/heads/master
c: d361fd5
h: refs/heads/master
i:
  203477: 145dab8
  203475: 1f76010
  203471: 389a2d7
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jul 13, 2010
1 parent b1b6d23 commit 83ed5fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7ba42910073f8432934d61a6c08b1023c408fb62
refs/heads/master: d361fd599a991ff6c1d522a599c635b35d61ef30
5 changes: 3 additions & 2 deletions trunk/net/core/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -1339,9 +1339,10 @@ EXPORT_SYMBOL(sock_wfree);
void sock_rfree(struct sk_buff *skb)
{
struct sock *sk = skb->sk;
unsigned int len = skb->truesize;

atomic_sub(skb->truesize, &sk->sk_rmem_alloc);
sk_mem_uncharge(skb->sk, skb->truesize);
atomic_sub(len, &sk->sk_rmem_alloc);
sk_mem_uncharge(sk, len);
}
EXPORT_SYMBOL(sock_rfree);

Expand Down

0 comments on commit 83ed5fb

Please sign in to comment.