projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c9ff97
)
decnet: fix shutdown parameter checking
author
Xi Wang
<xi.wang@gmail.com>
Sun, 26 Aug 2012 16:37:07 +0000
(16:37 +0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 31 Aug 2012 19:55:37 +0000
(15:55 -0400)
The allowed value of "how" is SHUT_RD/SHUT_WR/SHUT_RDWR (0/1/2),
rather than SHUTDOWN_MASK (3).
Signed-off-by: Xi Wang <xi.wang@gmail.com>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/decnet/af_decnet.c
patch
|
blob
|
history
diff --git
a/net/decnet/af_decnet.c
b/net/decnet/af_decnet.c
index
2ba1a28
..
307c322
100644
(file)
--- a/
net/decnet/af_decnet.c
+++ b/
net/decnet/af_decnet.c
@@
-1313,10
+1313,10
@@
static int dn_shutdown(struct socket *sock, int how)
if (scp->state == DN_O)
goto out;
- if (how != SHUT
DOWN_MASK
)
+ if (how != SHUT
_RDWR
)
goto out;
- sk->sk_shutdown =
how
;
+ sk->sk_shutdown =
SHUTDOWN_MASK
;
dn_destroy_sock(sk);
err = 0;