Bluetooth: bcm203x: Use GFP_KERNEL in workqueue
authorDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 25 Oct 2011 19:13:36 +0000 (21:13 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Mon, 7 Nov 2011 19:24:53 +0000 (17:24 -0200)
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>
drivers/bluetooth/bcm203x.c

index ec743c2ddf9de6ac31c81787d746a6cd21f29b33..54952ab800b88b5e5ae34229f7602c71c11e45e1 100644 (file)
@@ -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");
 }