diff options
author | Devendra Naga <devendra.aaru@gmail.com> | 2013-06-02 22:25:26 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-03 12:35:53 -0700 |
commit | 51dd7d2995739df16ce2b584be3eb5d2e83b2822 (patch) | |
tree | 73a251716a0d333492e5541b6ef2dcf6a1424c12 /drivers | |
parent | d3d472b6e57e55132a0c2a048e3b18759c73ee7b (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/btmtk_usb/btmtk_usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |