[PATCH] staging: btmtk_usb: use GFP_KERNEL inplace of GFP_ATOMIC in _probe path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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 ab57a4b..0e783e8 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);
-- 
1.8.1.4

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux