Skip to content
Commit 938cca9e authored by Tetsuo Handa's avatar Tetsuo Handa Committed by David S. Miller
Browse files

sock: fix /proc/net/sockstat underflow in sk_clone_lock()



sk_clone_lock() needs to call sock_inuse_add(1) before entering the
sk_free_unlock_clone() error path, for __sk_free() from sk_free() from
sk_free_unlock_clone() calls sock_inuse_add(-1).

Signed-off-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Fixes: 648845ab ("sock: Move the socket inuse to namespace.")
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 271351d2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment