diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2012-04-13 06:32:42 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo@padovan.org> | 2012-04-24 10:38:41 -0400 |
commit | 16cde9931bcd8d8ca968ef1cded02684ea040374 (patch) | |
tree | 1ecdedcee16e1bb04f22765d6299e1f17386f514 /net | |
parent | ac71311e65e2c4c2dbac76db698fecbee755b016 (diff) |
Bluetooth: Fix missing break in hci_cmd_complete_evt
Command complete event for HCI_OP_USER_PASSKEY_NEG_REPLY would result
in calling handler function also for HCI_OP_LE_SET_SCAN_PARAM. This
could result in undefined behaviour.
Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/hci_event.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 6a72eaea70ee..7f87a70b8618 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -2314,6 +2314,7 @@ static inline void hci_cmd_complete_evt(struct hci_dev *hdev, struct sk_buff *sk | |||
2314 | 2314 | ||
2315 | case HCI_OP_USER_PASSKEY_NEG_REPLY: | 2315 | case HCI_OP_USER_PASSKEY_NEG_REPLY: |
2316 | hci_cc_user_passkey_neg_reply(hdev, skb); | 2316 | hci_cc_user_passkey_neg_reply(hdev, skb); |
2317 | break; | ||
2317 | 2318 | ||
2318 | case HCI_OP_LE_SET_SCAN_PARAM: | 2319 | case HCI_OP_LE_SET_SCAN_PARAM: |
2319 | hci_cc_le_set_scan_param(hdev, skb); | 2320 | hci_cc_le_set_scan_param(hdev, skb); |