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 <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Devendra Naga 2013-06-02 22:25:26 +05:30 committed by Greg Kroah-Hartman
parent d3d472b6e5
commit 51dd7d2995
1 changed files with 1 additions and 1 deletions

View 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);