Commit b91a4e3e authored by David Herrmann's avatar David Herrmann Committed by Gustavo F. Padovan

Bluetooth: bcm203x: Use GFP_KERNEL in workqueue

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: default avatarDavid Herrmann <dh.herrmann@googlemail.com>
Acked-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent fc501ad7
......@@ -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");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment