projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb13453
)
HID: usbmouse: Avoid GFP_ATOMIC when GFP_KERNEL is possible
author
Hyeonggon Yoo
<42.hyeyoo@gmail.com>
Mon, 24 May 2021 14:57:43 +0000
(23:57 +0900)
committer
Jiri Kosina
<jkosina@suse.cz>
Wed, 26 May 2021 11:11:23 +0000
(13:11 +0200)
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>
drivers/hid/usbhid/usbmouse.c
patch
|
blob
|
history
diff --git
a/drivers/hid/usbhid/usbmouse.c
b/drivers/hid/usbhid/usbmouse.c
index 073127e65ac10160e74dc4c90a77245e02687563..c89332017d5d4f128e517f01fa9805e2b700b242 100644
(file)
--- 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;