]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Add error return value to hci_req_sync callback
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 11 Nov 2015 06:11:25 +0000 (08:11 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 19 Nov 2015 16:50:30 +0000 (17:50 +0100)
commitec09c4391a8db4fd3d8ed427ff9d9047a6408779
tree6819b41eac718e063be46d8dee6aa860486f2b20
parent60be9c85aac07eb58f404ae9a57f062aad557ce2
Bluetooth: Add error return value to hci_req_sync callback

In some circumstances it may be useful to abort the request through
checks done in the request callback. To make the feature possible this
patch changes the return value of the request callback from void to
int and aborts the request if a non-zero value is returned.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c
net/bluetooth/hci_request.c
net/bluetooth/hci_request.h