Bluetooth: Fix missing hci_dev_lock/unlock in hci_event
authorJaganath Kanakkassery <jaganath.k@samsung.com>
Thu, 11 Dec 2014 13:28:15 +0000 (18:58 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 11 Dec 2014 14:09:04 +0000 (15:09 +0100)
mgmt_pending_remove() should be called with hci_dev_lock protection and
all hci_event.c functions which calls mgmt_complete() (which eventually
calls mgmt_pending_remove()) should hold the lock.
So this patch fixes the same

Signed-off-by: Jaganath Kanakkassery <jaganath.k@samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_event.c

Simple merge