diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/core/sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/sock.c b/net/core/sock.c index 8c184c4a3811..3804e7df626b 100644 --- a/net/core/sock.c +++ b/net/core/sock.c | |||
@@ -1476,7 +1476,7 @@ void __sk_mem_reclaim(struct sock *sk) | |||
1476 | { | 1476 | { |
1477 | struct proto *prot = sk->sk_prot; | 1477 | struct proto *prot = sk->sk_prot; |
1478 | 1478 | ||
1479 | atomic_sub(sk->sk_forward_alloc / SK_MEM_QUANTUM, | 1479 | atomic_sub(sk->sk_forward_alloc >> SK_MEM_QUANTUM_SHIFT, |
1480 | prot->memory_allocated); | 1480 | prot->memory_allocated); |
1481 | sk->sk_forward_alloc &= SK_MEM_QUANTUM - 1; | 1481 | sk->sk_forward_alloc &= SK_MEM_QUANTUM - 1; |
1482 | 1482 | ||