projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe86e54
)
af_iucv: Test additional sk states in iucv_sock_shutdown
author
Hendrik Brueckner
<brueckner@linux.vnet.ibm.com>
Tue, 21 Apr 2009 06:04:23 +0000
(06:04 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 22 Apr 2009 06:43:15 +0000
(23:43 -0700)
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>
net/iucv/af_iucv.c
patch
|
blob
|
blame
|
history
diff --git
a/net/iucv/af_iucv.c
b/net/iucv/af_iucv.c
index ee517108856e26f2466c54e7cc5475fc0d26b9f2..9cfdaaddc5b2756bfb6d2d859b4c6008347545d0 100644
(file)
--- 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;