OSDN Git Service

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)
commit5c1a4c8f28059e592da4fff40c0dc54202fb5cc6
treec09f33a79997bd440c3b3c8640d1a640caa3a17b
parent3ad675827f4a3623b7fc51ffe8fdb0347b3cbc53
Bluetooth: Fix missing hci_dev_lock/unlock in hci_event

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