]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix __hci_req_sync() handling of empty requests
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 5 Mar 2013 18:37:42 +0000 (20:37 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 8 Mar 2013 13:40:25 +0000 (10:40 -0300)
commit5f2596e95095368e5d04c1bcf7c3c918781b53f1
treeaa671d4a99b4da6594541c974535f8c6e0ce5ad8
parent0a6663a196c32997d6917bba3d3ee3a22751510d
Bluetooth: Fix __hci_req_sync() handling of empty requests

If a request callback doesn't send any commands __hci_req_sync() should
fail imediately instead of waiting for the inevitable timeout to occur.
This is particularly important once we start creating requests with
conditional command sending which can potentially result in no commands
being sent at all.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hci_core.c