mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 02:54:05 +00:00
Calling shutdown with SHUT_RD and SHUT_RDWR for a listening SMC socket crashes, because commit127f497058("net/smc: release clcsock from tcp_listen_worker") releases the internal clcsock in smc_close_active() and sets smc->clcsock to NULL. For SHUT_RD the smc_close_active() call is removed. For SHUT_RDWR the kernel_sock_shutdown() call is omitted, since the clcsock is already released. Fixes:127f497058("net/smc: release clcsock from tcp_listen_worker") Signed-off-by: Ursula Braun <[email protected]> Reported-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>