From: Ursula Braun <ubr...@linux.ibm.com> Date: Thu, 19 Apr 2018 15:56:40 +0200
> From: Ursula Braun <ubr...@linux.vnet.ibm.com> > > Calling shutdown with SHUT_RD and SHUT_RDWR for a listening SMC socket > crashes, because > commit 127f49705823 ("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: 127f49705823 ("net/smc: release clcsock from tcp_listen_worker") > Signed-off-by: Ursula Braun <ubr...@linux.vnet.ibm.com> > Reported-by: Stephen Hemminger <step...@networkplumber.org> Applied, thank you.