diff options
author | Ursula Braun <ubraun@linux.vnet.ibm.com> | 2018-04-19 15:56:40 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-19 16:38:39 -0400 |
commit | 1255fcb2a655f05e02f3a74675a6d6525f187afd (patch) | |
tree | cae7571656a85e8c76109813874fa4521fdd003b /drivers | |
parent | a60faa60da891e311e19fd3e88d611863f431130 (diff) | |
download | linux-1255fcb2a655f05e02f3a74675a6d6525f187afd.tar.bz2 |
net/smc: fix shutdown in state SMC_LISTEN
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 <ubraun@linux.vnet.ibm.com>
Reported-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions