Skip to contentSkip to conversation

bluetooth: bpa10x: change return value

PATCH In review Navid Emamdoost 2 participants 2 messages Aug 31, 2019 – Sep 4, 2019 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bluetooth: bpa10x: change return value

When returning from bpa10x_send_frame, it is necessary to propagate any potential errno returned from usb_submit_urb.

---
 drivers/bluetooth/bpa10x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bluetooth/bpa10x.c +1 -1
index a0e84538cec8..1fa58c059cbf 100644
@@ -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)
Signature · 1 line
2.17.1
maintainer
#1 lore raw

Hi Navid,

Quoted 7 lines

When returning from bpa10x_send_frame, it is necessary to propagate any potential errno returned from usb_submit_urb.

---
drivers/bluetooth/bpa10x.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel