diff options
author | Hendrik Brueckner <brueckner@linux.vnet.ibm.com> | 2009-04-21 06:04:23 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-21 23:43:15 -0700 |
commit | e14ad5fa8705fb354e72312479abbe420ebc3f8e (patch) | |
tree | 423a6c8d7e3c6ca837623434dc20ee6873636830 | |
parent | fe86e54ef9465c97a16337d2a41a4cf486b937ae (diff) | |
download | linux-e14ad5fa8705fb354e72312479abbe420ebc3f8e.tar.gz linux-e14ad5fa8705fb354e72312479abbe420ebc3f8e.tar.bz2 linux-e14ad5fa8705fb354e72312479abbe420ebc3f8e.zip |
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>
-rw-r--r-- | net/iucv/af_iucv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c index ee517108856e..9cfdaaddc5b2 100644 --- a/net/iucv/af_iucv.c +++ b/net/iucv/af_iucv.c @@ -937,6 +937,9 @@ static int iucv_sock_shutdown(struct socket *sock, int how) lock_sock(sk); switch (sk->sk_state) { + case IUCV_DISCONN: + case IUCV_CLOSING: + case IUCV_SEVERED: case IUCV_CLOSED: err = -ENOTCONN; goto fail; |