Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225518
b: refs/heads/master
c: 17f9cc3
h: refs/heads/master
v: v3
  • Loading branch information
Gustavo F. Padovan committed Dec 23, 2010
1 parent e996576 commit 64b2d9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 23bb57633df97ede067ea26f3cdc8a7ba2cd8109
refs/heads/master: 17f9cc3124c97f50a19a7597e5f29f915b5b835c
5 changes: 4 additions & 1 deletion trunk/net/bluetooth/hci_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,10 @@ static int hci_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_le
if (haddr.hci_family != AF_BLUETOOTH)
return -EINVAL;

if (haddr.hci_channel != HCI_CHANNEL_RAW && !enable_mgmt)
if (haddr.hci_channel > HCI_CHANNEL_CONTROL)
return -EINVAL;

if (haddr.hci_channel == HCI_CHANNEL_CONTROL && !enable_mgmt)
return -EINVAL;

lock_sock(sk);
Expand Down

0 comments on commit 64b2d9a

Please sign in to comment.