diff options
author | Navid Emamdoost <navid.emamdoost@gmail.com> | 2019-08-31 21:23:40 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2019-09-04 16:11:46 +0200 |
commit | d94dfd798c4839b642f534580109dc6dfc3901a9 (patch) | |
tree | 1e8bcaf9a21d0ede5bce7fc5d3bd83b8d7e3b14a /drivers/bluetooth/bpa10x.c | |
parent | Bluetooth: hci_qca: disable irqs when spinlock is acquired (diff) | |
download | linux-d94dfd798c4839b642f534580109dc6dfc3901a9.tar.xz linux-d94dfd798c4839b642f534580109dc6dfc3901a9.zip |
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/bpa10x.c')
-rw-r--r-- | drivers/bluetooth/bpa10x.c | 2 |
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) |