projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31fb1bb
)
Bluetooth: bpa10x: change return value
author
Navid Emamdoost
<navid.emamdoost@gmail.com>
Sat, 31 Aug 2019 19:23:40 +0000
(14:23 -0500)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 4 Sep 2019 14:11:46 +0000
(16:11 +0200)
When returning from bpa10x_send_frame, it is necessary to propagate any
potential errno returned from usb_submit_urb.
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/bpa10x.c
patch
|
blob
|
history
diff --git
a/drivers/bluetooth/bpa10x.c
b/drivers/bluetooth/bpa10x.c
index a0e84538cec88bfb7b80ee0dae4cef69282b589f..1fa58c059cbf5c6e115ccf5c3970b1165afe89b2 100644
(file)
--- a/
drivers/bluetooth/bpa10x.c
+++ b/
drivers/bluetooth/bpa10x.c
@@
-337,7
+337,7
@@
static int bpa10x_send_frame(struct hci_dev *hdev, struct sk_buff *skb)
usb_free_urb(urb);
- return
0
;
+ return
err
;
}
static int bpa10x_set_diag(struct hci_dev *hdev, bool enable)