forked from Minki/linux
af_iucv: Test additional sk states in iucv_sock_shutdown
Add few more sk states in iucv_sock_shutdown(). Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
fe86e54ef9
commit
e14ad5fa87
@ -937,6 +937,9 @@ static int iucv_sock_shutdown(struct socket *sock, int how)
|
|||||||
|
|
||||||
lock_sock(sk);
|
lock_sock(sk);
|
||||||
switch (sk->sk_state) {
|
switch (sk->sk_state) {
|
||||||
|
case IUCV_DISCONN:
|
||||||
|
case IUCV_CLOSING:
|
||||||
|
case IUCV_SEVERED:
|
||||||
case IUCV_CLOSED:
|
case IUCV_CLOSED:
|
||||||
err = -ENOTCONN;
|
err = -ENOTCONN;
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Loading…
Reference in New Issue
Block a user