summaryrefslogtreecommitdiffstats
path: root/net/iucv
diff options
context:
space:
mode:
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>2009-04-21 08:04:23 +0200
committerDavid S. Miller <davem@davemloft.net>2009-04-22 08:43:15 +0200
commite14ad5fa8705fb354e72312479abbe420ebc3f8e (patch)
tree423a6c8d7e3c6ca837623434dc20ee6873636830 /net/iucv
parentaf_iucv: Reject incoming msgs if RECV_SHUTDOWN is set (diff)
downloadlinux-e14ad5fa8705fb354e72312479abbe420ebc3f8e.tar.xz
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>
Diffstat (limited to 'net/iucv')
-rw-r--r--net/iucv/af_iucv.c3
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;