HID: usbkbd: Avoid GFP_ATOMIC when GFP_KERNEL is possible
authorHyeonggon Yoo <42.hyeyoo@gmail.com>
Sat, 29 May 2021 10:03:57 +0000 (19:03 +0900)
committerJiri Kosina <jkosina@suse.cz>
Tue, 15 Jun 2021 08:50:36 +0000 (10:50 +0200)
commita3af901c89685acb590b49ce054ea7e3015a770a
treec0699dfd083af0f74af36913627c7c97d6a2379b
parent04c22eeaf6323c51ac3d429dc03de91a82f811cb
HID: usbkbd: Avoid GFP_ATOMIC when GFP_KERNEL is possible

usb_kbd_alloc_mem is called in usb_kbd_probe, which is
not in atomic context. So constraints can be relaxed here.

Use GFP_KERNEL instead of GFP_ATOMIC.

Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/usbkbd.c