|
@@ -2688,7 +2688,7 @@ static void hci_cmd_complete_evt(struct hci_dev *hdev, struct sk_buff *skb)
|
|
|
if (ev->opcode != HCI_OP_NOP)
|
|
|
del_timer(&hdev->cmd_timer);
|
|
|
|
|
|
- if (ev->ncmd) {
|
|
|
+ if (ev->ncmd && !test_bit(HCI_RESET, &hdev->flags)) {
|
|
|
atomic_set(&hdev->cmd_cnt, 1);
|
|
|
if (!skb_queue_empty(&hdev->cmd_q))
|
|
|
queue_work(hdev->workqueue, &hdev->cmd_work);
|