diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-04-25 14:34:25 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-25 14:34:25 -0400 |
commit | cfef6047c4027a8448ec8dafeaf2bb362cc882e4 (patch) | |
tree | c254bd25aa8b4b0696b5b5cc45d8e30c7c1bb9dd /net/bluetooth/hci_event.c | |
parent | b71d1d426d263b0b6cb5760322efebbfc89d4463 (diff) | |
parent | 73b48099cc265f88fa1255f3f43e52fe6a94fd5c (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Conflicts:
drivers/net/wireless/iwlwifi/iwl-core.c
drivers/net/wireless/rt2x00/rt2x00queue.c
drivers/net/wireless/rt2x00/rt2x00queue.h
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r-- | net/bluetooth/hci_event.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 7a3398d9cd65..c7eb073fe633 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -2497,6 +2497,9 @@ static inline void hci_remote_oob_data_request_evt(struct hci_dev *hdev, | |||
2497 | 2497 | ||
2498 | hci_dev_lock(hdev); | 2498 | hci_dev_lock(hdev); |
2499 | 2499 | ||
2500 | if (!test_bit(HCI_MGMT, &hdev->flags)) | ||
2501 | goto unlock; | ||
2502 | |||
2500 | data = hci_find_remote_oob_data(hdev, &ev->bdaddr); | 2503 | data = hci_find_remote_oob_data(hdev, &ev->bdaddr); |
2501 | if (data) { | 2504 | if (data) { |
2502 | struct hci_cp_remote_oob_data_reply cp; | 2505 | struct hci_cp_remote_oob_data_reply cp; |
@@ -2515,6 +2518,7 @@ static inline void hci_remote_oob_data_request_evt(struct hci_dev *hdev, | |||
2515 | &cp); | 2518 | &cp); |
2516 | } | 2519 | } |
2517 | 2520 | ||
2521 | unlock: | ||
2518 | hci_dev_unlock(hdev); | 2522 | hci_dev_unlock(hdev); |
2519 | } | 2523 | } |
2520 | 2524 | ||