diff options
author | Tetsuo Handa <[email protected]> | 2021-11-15 19:16:56 +0900 |
---|---|---|
committer | David S. Miller <[email protected]> | 2021-11-15 14:27:39 +0000 |
commit | 938cca9e4109b30ee1d476904538225a825e54eb (patch) | |
tree | 9df7f8766c30609396f9e852fe9ef703b834303a /lib/test_overflow.c | |
parent | 271351d255b09e39c7f6437738cba595f9b235be (diff) |
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 <[email protected]>
Fixes: 648845ab7e200993 ("sock: Move the socket inuse to namespace.")
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions