Skip to content

Commit d94dfd7

Browse files
Navidemholtmann
authored andcommitted
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 <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 31fb1bb commit d94dfd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/bluetooth/bpa10x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ static int bpa10x_send_frame(struct hci_dev *hdev, struct sk_buff *skb)
337337

338338
usb_free_urb(urb);
339339

340-
return 0;
340+
return err;
341341
}
342342

343343
static int bpa10x_set_diag(struct hci_dev *hdev, bool enable)

0 commit comments

Comments
 (0)