diff options
Diffstat (limited to 'net/bluetooth/bnep/sock.c')
-rw-r--r-- | net/bluetooth/bnep/sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/bnep/sock.c b/net/bluetooth/bnep/sock.c index 5b6cc0bf4dec..e7154a58465f 100644 --- a/net/bluetooth/bnep/sock.c +++ b/net/bluetooth/bnep/sock.c | |||
@@ -64,7 +64,7 @@ static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long | |||
64 | switch (cmd) { | 64 | switch (cmd) { |
65 | case BNEPCONNADD: | 65 | case BNEPCONNADD: |
66 | if (!capable(CAP_NET_ADMIN)) | 66 | if (!capable(CAP_NET_ADMIN)) |
67 | return -EACCES; | 67 | return -EPERM; |
68 | 68 | ||
69 | if (copy_from_user(&ca, argp, sizeof(ca))) | 69 | if (copy_from_user(&ca, argp, sizeof(ca))) |
70 | return -EFAULT; | 70 | return -EFAULT; |
@@ -90,7 +90,7 @@ static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long | |||
90 | 90 | ||
91 | case BNEPCONNDEL: | 91 | case BNEPCONNDEL: |
92 | if (!capable(CAP_NET_ADMIN)) | 92 | if (!capable(CAP_NET_ADMIN)) |
93 | return -EACCES; | 93 | return -EPERM; |
94 | 94 | ||
95 | if (copy_from_user(&cd, argp, sizeof(cd))) | 95 | if (copy_from_user(&cd, argp, sizeof(cd))) |
96 | return -EFAULT; | 96 | return -EFAULT; |