net: change return values from -EACCES to -EPERM
authorZhao Hongjiang <zhaohongjiang@huawei.com>
Thu, 20 Sep 2012 22:37:25 +0000 (22:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Sep 2012 17:58:08 +0000 (13:58 -0400)
commitbf5b30b8a4416de04f1ac1196281ddb318669464
treea96a8280047830630b54aa82c568f7a22e8f0ba1
parente0c7a4a1a6c4ace4a176b95cb5089f55452c625e
net: change return values from -EACCES to -EPERM

Change return value from -EACCES to -EPERM when the permission check fails.

Signed-off-by: Zhao Hongjiang <zhaohongjiang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bluetooth/bnep/sock.c
net/bluetooth/cmtp/sock.c
net/bluetooth/hci_sock.c
net/bluetooth/hidp/sock.c
net/ipv4/devinet.c
net/netrom/af_netrom.c