staging: btmtk_usb: use GFP_KERNEL inplace of GFP_ATOMIC in _probe path
authorDevendra Naga <devendra.aaru@gmail.com>
Sun, 2 Jun 2013 16:55:26 +0000 (22:25 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Jun 2013 19:35:53 +0000 (12:35 -0700)
the _probe function doesn't run in interrupt context, so no need to use
the GFP_ATOMIC allocations, instead driver can request for GFP_KERNEL

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/btmtk_usb/btmtk_usb.c

index ab57a4b97e69bb1c9eedd2e67aa56a934de9f23c..0e783e8d71ca3e8691b1a1c00cfd54cd0d1c4691 100644 (file)
@@ -1596,7 +1596,7 @@ static int btmtk_usb_probe(struct usb_interface *intf,
                }
        }
 
-       data->io_buf = kmalloc(256, GFP_ATOMIC);
+       data->io_buf = kmalloc(256, GFP_KERNEL);
        if (!data->io_buf) {
                hci_free_dev(hdev);
                kfree(data);