]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Bluetooth: Fix missing break in hci_cmd_complete_evt
authorSzymon Janc <szymon.janc@tieto.com>
Fri, 13 Apr 2012 10:32:42 +0000 (12:32 +0200)
committerGustavo Padovan <gustavo@padovan.org>
Fri, 13 Apr 2012 22:18:41 +0000 (19:18 -0300)
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>
net/bluetooth/hci_event.c

index bb6d8020780b48fa0531d48e07befa91b9296e8d..f8c617420e533d10fb5ea9444331ba90f9055738 100644 (file)
@@ -2344,6 +2344,7 @@ static inline void hci_cmd_complete_evt(struct hci_dev *hdev, struct sk_buff *sk
 
        case HCI_OP_USER_PASSKEY_NEG_REPLY:
                hci_cc_user_passkey_neg_reply(hdev, skb);
+               break;
 
        case HCI_OP_LE_SET_SCAN_PARAM:
                hci_cc_le_set_scan_param(hdev, skb);