Bluetooth: Check hci_req_run returning value in __hci_req_sync
authorAndre Guedes <andre.guedes@openbossa.org>
Fri, 8 Mar 2013 14:20:15 +0000 (11:20 -0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Sat, 9 Mar 2013 20:10:37 +0000 (17:10 -0300)
commit920c8300c66566afbf92311152c6e462a310203e
treee373e31788842b4c159d9e177034f5c8e440fc9a
parent382b0c39b3f5b239e3fc07712027fcd4d503bd26
Bluetooth: Check hci_req_run returning value in __hci_req_sync

Since hci_req_run will be returning more than one error code, we
should check its returning value in __hci_req_sync.

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