Skip to content

Commit b15b253

Browse files
hygoniJiri Kosina
authored andcommitted
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 <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent eb13453 commit b15b253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/usbhid/usbmouse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static int usb_mouse_probe(struct usb_interface *intf, const struct usb_device_i
130130
if (!mouse || !input_dev)
131131
goto fail1;
132132

133-
mouse->data = usb_alloc_coherent(dev, 8, GFP_ATOMIC, &mouse->data_dma);
133+
mouse->data = usb_alloc_coherent(dev, 8, GFP_KERNEL, &mouse->data_dma);
134134
if (!mouse->data)
135135
goto fail1;
136136

0 commit comments

Comments
 (0)