af_unix: fix shutdown parameter checking
authorXi Wang <xi.wang@gmail.com>
Sun, 26 Aug 2012 16:47:13 +0000 (16:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Aug 2012 19:55:37 +0000 (15:55 -0400)
commitfc61b928dc4d72176cf4bd4d30bf1d22e599aefc
tree6ae17685b8c9657293670d38f4703a4c597a3523
parent46b66d7077b89fb4917ceef19b3f7dd86055c94a
af_unix: fix shutdown parameter checking

Return -EINVAL rather than 0 given an invalid "mode" parameter.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/af_unix.c