mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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: David Herrmann <[email protected]> Acked-by: Marcel Holtmann <[email protected]> Signed-off-by: Gustavo F. Padovan <[email protected]>
This commit is contained in:
parent
fc501ad7a1
commit
b91a4e3e3a
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue