aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorTony Lu <[email protected]>2021-11-26 02:41:35 +0000
committerJakub Kicinski <[email protected]>2021-11-26 19:23:35 +0000
commitbacb6c1e47691cda4a95056c21b5487fb7199fcc (patch)
tree0e0d9c47c1eafcfa67e0717c1172184bf2f42482 /net/unix/af_unix.c
parentnet: vlan: fix underflow for the real_dev refcnt (diff)
downloadkernel-bacb6c1e47691cda4a95056c21b5487fb7199fcc.tar.gz
kernel-bacb6c1e47691cda4a95056c21b5487fb7199fcc.zip
net/smc: Don't call clcsock shutdown twice when smc shutdown
When applications call shutdown() with SHUT_RDWR in userspace, smc_close_active() calls kernel_sock_shutdown(), and it is called twice in smc_shutdown(). This fixes this by checking sk_state before do clcsock shutdown, and avoids missing the application's call of smc_shutdown(). Link: https://lore.kernel.org/linux-s390/[email protected]/ Fixes: 606a63c9783a ("net/smc: Ensure the active closing peer first closes clcsock") Signed-off-by: Tony Lu <[email protected]> Reviewed-by: Wen Gu <[email protected]> Acked-by: Karsten Graul <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions