Skip to content

Commit

Permalink
Bluetooth: Prevent ill-timed autosuspend in USB driver
Browse files Browse the repository at this point in the history
The device must be marked busy as it receives data.

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Tested-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Oliver Neukum authored and Marcel Holtmann committed Dec 17, 2009
1 parent b13f586 commit 652fd78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/bluetooth/btusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 652fd78

Please sign in to comment.