diff options
author | Ursula Braun <ubraun@linux.ibm.com> | 2018-08-08 14:13:19 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-08 19:14:22 -0700 |
commit | caa21e19e08d7a1445116a93f7ab4e187ebbbadb (patch) | |
tree | 5cc5dccf2d25d7305186bbf5cf94e67563f8d9bf /net/sunrpc | |
parent | 11ba961c916127651e12af6cad3891f8aeb25aa9 (diff) | |
download | linux-caa21e19e08d7a1445116a93f7ab4e187ebbbadb.tar.bz2 |
net/smc: no shutdown in state SMC_LISTEN
Invoking shutdown for a socket in state SMC_LISTEN does not make
sense. Nevertheless programs like syzbot fuzzing the kernel may
try to do this. For SMC this means a socket refcounting problem.
This patch makes sure a shutdown call for an SMC socket in state
SMC_LISTEN simply returns with -ENOTCONN.
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sunrpc')
0 files changed, 0 insertions, 0 deletions