]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btusb, hci_intel: Fix wait_on_bit_timeout() return value checks
authorBart Van Assche <bart.vanassche@sandisk.com>
Thu, 11 Aug 2016 23:02:44 +0000 (16:02 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 19 Sep 2016 18:19:34 +0000 (20:19 +0200)
commit8b992a767071b21b8750c9b8e78dfcc8a3a39225
tree8e4fc285ff4e5c0b599a02beafaa6a876b95ef56
parentb6e9cf9ede844e7940b6c9e55795768a94dd005c
Bluetooth: btusb, hci_intel: Fix wait_on_bit_timeout() return value checks

wait_on_bit_timeout() returns one of the following three values:
* 0 to indicate success.
* -EINTR to indicate that a signal has been received;
* -EAGAIN to indicate timeout;
Make the wait_on_bit_timeout() callers check for these values.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c
drivers/bluetooth/hci_intel.c