diff options
author | Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp> | 2021-11-15 11:16:56 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-15 15:27:39 +0100 |
commit | 938cca9e4109b30ee1d476904538225a825e54eb (patch) | |
tree | 9df7f8766c30609396f9e852fe9ef703b834303a /net/smc | |
parent | tipc: only accept encrypted MSG_CRYPTO msgs (diff) | |
download | linux-938cca9e4109b30ee1d476904538225a825e54eb.tar.xz linux-938cca9e4109b30ee1d476904538225a825e54eb.zip |
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: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Fixes: 648845ab7e200993 ("sock: Move the socket inuse to namespace.")
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc')
0 files changed, 0 insertions, 0 deletions