diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/l2cap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index 7c6768c2a530..db6fbf129be0 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c | |||
@@ -1308,7 +1308,7 @@ static int l2cap_sock_setsockopt(struct socket *sock, int level, int optname, ch | |||
1308 | 1308 | ||
1309 | switch (optname) { | 1309 | switch (optname) { |
1310 | case BT_SECURITY: | 1310 | case BT_SECURITY: |
1311 | if (sk->sk_type != SOCK_SEQPACKET) { | 1311 | if (sk->sk_type != SOCK_SEQPACKET && sk->sk_type != SOCK_RAW) { |
1312 | err = -EINVAL; | 1312 | err = -EINVAL; |
1313 | break; | 1313 | break; |
1314 | } | 1314 | } |
@@ -1455,7 +1455,7 @@ static int l2cap_sock_getsockopt(struct socket *sock, int level, int optname, ch | |||
1455 | 1455 | ||
1456 | switch (optname) { | 1456 | switch (optname) { |
1457 | case BT_SECURITY: | 1457 | case BT_SECURITY: |
1458 | if (sk->sk_type != SOCK_SEQPACKET) { | 1458 | if (sk->sk_type != SOCK_SEQPACKET && sk->sk_type != SOCK_RAW) { |
1459 | err = -EINVAL; | 1459 | err = -EINVAL; |
1460 | break; | 1460 | break; |
1461 | } | 1461 | } |