Skip to content

Commit

Permalink
Bluetooth: bcm203x: Use GFP_KERNEL in workqueue
Browse files Browse the repository at this point in the history
A workqueue is allowed to sleep so we can safely use GFP_KERNEL instead of
GFP_ATOMIC. This is still legacy code when the driver used timer BHs and not a
worqueue.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
  • Loading branch information
David Herrmann authored and Gustavo F. Padovan committed Nov 7, 2011
1 parent 844e4b7 commit deceb02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/bluetooth/bcm203x.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static void bcm203x_work(struct work_struct *work)
if (atomic_read(&data->shutdown))
return;

if (usb_submit_urb(data->urb, GFP_ATOMIC) < 0)
if (usb_submit_urb(data->urb, GFP_KERNEL) < 0)
BT_ERR("Can't submit URB");
}

Expand Down

0 comments on commit deceb02

Please sign in to comment.