提交 deceb024 编写于 作者: D David Herrmann 提交者: 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: NDavid Herrmann <dh.herrmann@googlemail.com>
Acked-by: NMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
上级 844e4b76
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册