aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorHyeonggon Yoo <42.hyeyoo@gmail.com>2021-05-24 23:57:43 +0900
committerJiri Kosina <jkosina@suse.cz>2021-05-26 13:11:23 +0200
commitb15b253c908235bb10bdbc36f7e33ab40758215f (patch)
treee6a338307d70abd286faaa77b456276a7614fdaa /drivers/hid
parentHID: input: replace outdated HID numbers+comments with macros (diff)
downloadlinux-dev-b15b253c908235bb10bdbc36f7e33ab40758215f.tar.xz
linux-dev-b15b253c908235bb10bdbc36f7e33ab40758215f.zip
HID: usbmouse: Avoid GFP_ATOMIC when GFP_KERNEL is possible
probe in usb don't need to be atomic. So GFP_KERNEL can be used here, instead of GFP_ATOMIC. Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/usbhid/usbmouse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/usbhid/usbmouse.c b/drivers/hid/usbhid/usbmouse.c
index 073127e65ac1..c89332017d5d 100644
--- a/drivers/hid/usbhid/usbmouse.c
+++ b/drivers/hid/usbhid/usbmouse.c
@@ -130,7 +130,7 @@ static int usb_mouse_probe(struct usb_interface *intf, const struct usb_device_i
if (!mouse || !input_dev)
goto fail1;
- mouse->data = usb_alloc_coherent(dev, 8, GFP_ATOMIC, &mouse->data_dma);
+ mouse->data = usb_alloc_coherent(dev, 8, GFP_KERNEL, &mouse->data_dma);
if (!mouse->data)
goto fail1;