From 51dd7d2995739df16ce2b584be3eb5d2e83b2822 Mon Sep 17 00:00:00 2001 From: Devendra Naga Date: Sun, 2 Jun 2013 22:25:26 +0530 Subject: [PATCH] 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 --- drivers/staging/btmtk_usb/btmtk_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1