mirror of
https://github.com/torvalds/linux
synced 2024-10-02 09:18:22 +00:00
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>
This commit is contained in:
parent
eb134536cf
commit
b15b253c90
|
@ -130,7 +130,7 @@ static int usb_mouse_probe(struct usb_interface *intf, const struct usb_device_i
|
||||||
if (!mouse || !input_dev)
|
if (!mouse || !input_dev)
|
||||||
goto fail1;
|
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)
|
if (!mouse->data)
|
||||||
goto fail1;
|
goto fail1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue