decnet: fix shutdown parameter checking
authorXi Wang <xi.wang@gmail.com>
Sun, 26 Aug 2012 16:37:07 +0000 (16:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Aug 2012 19:55:37 +0000 (15:55 -0400)
commit46b66d7077b89fb4917ceef19b3f7dd86055c94a
tree27a0cd495e6fd8e69a924af4cffe7cb4d6f62fff
parent6c9ff979d1921e9fd05d89e1383121c2503759b9
decnet: fix shutdown parameter checking

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