aboutsummaryrefslogtreecommitdiffstats
path: root/net/iucv/af_iucv.c
diff options
context:
space:
mode:
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>2009-04-21 02:04:23 -0400
committerDavid S. Miller <davem@davemloft.net>2009-04-22 02:43:15 -0400
commite14ad5fa8705fb354e72312479abbe420ebc3f8e (patch)
tree423a6c8d7e3c6ca837623434dc20ee6873636830 /net/iucv/af_iucv.c
parentfe86e54ef9465c97a16337d2a41a4cf486b937ae (diff)
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/af_iucv.c')
-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)
937 937
938 lock_sock(sk); 938 lock_sock(sk);
939 switch (sk->sk_state) { 939 switch (sk->sk_state) {
940 case IUCV_DISCONN:
941 case IUCV_CLOSING:
942 case IUCV_SEVERED:
940 case IUCV_CLOSED: 943 case IUCV_CLOSED:
941 err = -ENOTCONN; 944 err = -ENOTCONN;
942 goto fail; 945 goto fail;