aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorTony Lu <[email protected]>2022-04-14 15:51:03 +0800
committerDavid S. Miller <[email protected]>2022-04-15 11:14:38 +0100
commit1a74e99323746353bba11562a2f2d0aa8102f402 (patch)
tree6078cb7bea897034844e2a2a0937c8e2ffe55fd9 /net/lapb/lapb_subr.c
parentee3b0826b4764f6c13ad6db67495c5a1c38e9025 (diff)
net/smc: Fix sock leak when release after smc_shutdown()
Since commit e5d5aadcf3cd ("net/smc: fix sk_refcnt underflow on linkdown and fallback"), for a fallback connection, __smc_release() does not call sock_put() if its state is already SMC_CLOSED. When calling smc_shutdown() after falling back, its state is set to SMC_CLOSED but does not call sock_put(), so this patch calls it. Reported-and-tested-by: [email protected] Fixes: e5d5aadcf3cd ("net/smc: fix sk_refcnt underflow on linkdown and fallback") Signed-off-by: Tony Lu <[email protected]> Acked-by: Karsten Graul <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions