From: Johan Hedberg Date: Wed, 19 Nov 2014 11:16:41 +0000 (+0200) Subject: Bluetooth: Fix setting state back to TASK_RUNNING X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~28^2~43^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22a3ceabf152c7c88afa9e34ea33fc3fa55e6cf8;p=pandora-kernel.git Bluetooth: Fix setting state back to TASK_RUNNING In __hci_cmd_sync_ev() and __hci_req_sync() if the hci_req_run() call fails and we return from the functions we should ensure that the state doesn't remain in TASK_INTERRUPTIBLE that we just set it to. This patch fixes missing calls to set_current_state(TASK_RUNNING) in both places. Reported-by: Kirill A. Shutemov Signed-off-by: Johan Hedberg Tested-by: Kirill A. Shutemov Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed