From: Devendra Naga Date: Sun, 2 Jun 2013 16:55:26 +0000 (+0530) Subject: staging: btmtk_usb: use GFP_KERNEL inplace of GFP_ATOMIC in _probe path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=51dd7d2995739df16ce2b584be3eb5d2e83b2822;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: btmtk_usb: use GFP_KERNEL inplace of GFP_ATOMIC in _probe path 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/btmtk_usb/btmtk_usb.c b/drivers/staging/btmtk_usb/btmtk_usb.c index ab57a4b97e69..0e783e8d71ca 100644 --- a/drivers/staging/btmtk_usb/btmtk_usb.c +++ b/drivers/staging/btmtk_usb/btmtk_usb.c @@ -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);