diff options
Diffstat (limited to 'net/bluetooth/l2cap.c')
-rw-r--r-- | net/bluetooth/l2cap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index 365ae161d702..ff0233df6246 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c | |||
@@ -832,7 +832,7 @@ static int l2cap_sock_create(struct net *net, struct socket *sock, int protocol, | |||
832 | sock->type != SOCK_DGRAM && sock->type != SOCK_RAW) | 832 | sock->type != SOCK_DGRAM && sock->type != SOCK_RAW) |
833 | return -ESOCKTNOSUPPORT; | 833 | return -ESOCKTNOSUPPORT; |
834 | 834 | ||
835 | if (sock->type == SOCK_RAW && !capable(CAP_NET_RAW)) | 835 | if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) |
836 | return -EPERM; | 836 | return -EPERM; |
837 | 837 | ||
838 | sock->ops = &l2cap_sock_ops; | 838 | sock->ops = &l2cap_sock_ops; |