summaryrefslogtreecommitdiff
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorNavid Emamdoost <navid.emamdoost@gmail.com>2019-08-31 22:23:40 +0300
committerMarcel Holtmann <marcel@holtmann.org>2019-09-04 17:11:46 +0300
commitd94dfd798c4839b642f534580109dc6dfc3901a9 (patch)
tree1e8bcaf9a21d0ede5bce7fc5d3bd83b8d7e3b14a /drivers/bluetooth
parent31fb1bbdabb34d53e3d83f0353085d9b79977786 (diff)
downloadlinux-d94dfd798c4839b642f534580109dc6dfc3901a9.tar.xz
Bluetooth: bpa10x: change return value
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>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/bpa10x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/bpa10x.c b/drivers/bluetooth/bpa10x.c
index a0e84538cec8..1fa58c059cbf 100644
--- 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)