Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4dda0e2 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Bluetooth: kill all the anchored URBs on USB device disconnect"

parents 68424872 9ae4f316
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2158,6 +2158,12 @@ static void btusb_disconnect(struct usb_interface *intf)
	if (!data)
		return;

	/* kill all the anchored urbs on USB disconnect */
	usb_kill_anchored_urbs(&data->intr_anchor);
	usb_kill_anchored_urbs(&data->bulk_anchor);
	usb_kill_anchored_urbs(&data->isoc_anchor);
	usb_kill_anchored_urbs(&data->tx_anchor);

	hdev = data->hdev;
	usb_set_intfdata(data->intf, NULL);