aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_request.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/hci_request.c')
-rw-r--r--net/bluetooth/hci_request.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/net/bluetooth/hci_request.c b/net/bluetooth/hci_request.c
index 76bd912be9fe..e639671f54bd 100644
--- a/net/bluetooth/hci_request.c
+++ b/net/bluetooth/hci_request.c
@@ -220,8 +220,14 @@ int __hci_req_sync(struct hci_dev *hdev, int (*func)(struct hci_request *req,
220 * trigger any commands to be sent. This is normal behavior 220 * trigger any commands to be sent. This is normal behavior
221 * and should not trigger an error return. 221 * and should not trigger an error return.
222 */ 222 */
223 if (err == -ENODATA) 223 if (err == -ENODATA) {
224 if (hci_status)
225 *hci_status = 0;
224 return 0; 226 return 0;
227 }
228
229 if (hci_status)
230 *hci_status = HCI_ERROR_UNSPECIFIED;
225 231
226 return err; 232 return err;
227 } 233 }