Commit 51dd7d29 authored by Devendra Naga's avatar Devendra Naga Committed by Greg Kroah-Hartman

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: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d3d472b6
...@@ -1596,7 +1596,7 @@ static int btmtk_usb_probe(struct usb_interface *intf, ...@@ -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) { if (!data->io_buf) {
hci_free_dev(hdev); hci_free_dev(hdev);
kfree(data); kfree(data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment