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

Commit 652fd781 authored by Oliver Neukum's avatar Oliver Neukum Committed by Marcel Holtmann
Browse files

Bluetooth: Prevent ill-timed autosuspend in USB driver



The device must be marked busy as it receives data.

Signed-off-by: default avatarOliver Neukum <oliver@neukum.org>
Tested-by: default avatarMatthew Garrett <mjg@redhat.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent b13f5860
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -307,6 +307,7 @@ static void btusb_bulk_complete(struct urb *urb)
		return;

	usb_anchor_urb(urb, &data->bulk_anchor);
	usb_mark_last_busy(data->udev);

	err = usb_submit_urb(urb, GFP_ATOMIC);
	if (err < 0) {