From: Hendrik Brueckner Date: Tue, 21 Apr 2009 06:04:23 +0000 (+0000) Subject: af_iucv: Test additional sk states in iucv_sock_shutdown X-Git-Tag: upstream/snapshot3+hdmi~18712^2~119 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e14ad5fa8705fb354e72312479abbe420ebc3f8e;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git af_iucv: Test additional sk states in iucv_sock_shutdown Add few more sk states in iucv_sock_shutdown(). Signed-off-by: Hendrik Brueckner Signed-off-by: Ursula Braun Signed-off-by: David S. Miller --- diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c index ee51710..9cfdaad 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;