]> git.karo-electronics.de Git - linux-beck.git/commit
Bluetooth: Fix hci_sync missing wakeup interrupt
authorChan-yeol Park <chanyeol.park@samsung.com>
Fri, 31 Oct 2014 05:23:06 +0000 (14:23 +0900)
committerJohan Hedberg <johan.hedberg@intel.com>
Sat, 1 Nov 2014 21:20:21 +0000 (23:20 +0200)
commit039fada5cd1963c32ed13d18d0dd467fdf966b66
tree8f6c1f136152b3b40816f6bc99369c31daa29111
parent6bc6c49f1e2f3ab1bec05d1c08aad219ab4eb5d0
Bluetooth: Fix hci_sync missing wakeup interrupt

__hci_cmd_sync_ev(), __hci_req_sync() could miss wake_up_interrupt from
hci_req_sync_complete() because hci_cmd_work() workqueue and its response
could be completed before they are ready to get the signal through
add_wait_queue(), set_current_state(TASK_INTERRUPTIBLE).

Signed-off-by: Chan-yeol Park <chanyeol.park@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_core.c