]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Return ENODATA in hci_req_run
authorAndre Guedes <andre.guedes@openbossa.org>
Fri, 8 Mar 2013 14:20:14 +0000 (11:20 -0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Sat, 9 Mar 2013 20:10:26 +0000 (17:10 -0300)
commit60cf7b5b89fac35b31ea24136dfb1628202533dd
treea61c93e3eba0957f995839ad5f9b7b8cda9478ed
parentc006ab0ed28963f060dd1cca3ca8d28af2efd7c8
Bluetooth: Return ENODATA in hci_req_run

In case the HCI request queue is empty, hci_req_run should return
ENODATA instead of EINVAL. This way, hci_req_run returns a more
meaningful error value.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hci_core.c