Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Navid Emamdoost and committed by
Marcel Holtmann
d94dfd79 31fb1bbd

+1 -1
+1 -1
drivers/bluetooth/bpa10x.c
··· 337 337 338 338 usb_free_urb(urb); 339 339 340 - return 0; 340 + return err; 341 341 } 342 342 343 343 static int bpa10x_set_diag(struct hci_dev *hdev, bool enable)