Input: fix typo in keycode validation supporting large scancodes

Check the input_keymap_entry keycode size (u32) instead of the device's
(void*) when validating that keycode value can be stored in the keymap.

Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=22722

Signed-off-by: Mattia Dongili <malattia@linux.it>
Tested-by: Norbert Preining <preining@logic.at>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by Mattia Dongili and committed by Dmitry Torokhov de391d12 6f07d31e

+1 -1
+1 -1
drivers/input/input.c
··· 753 if (index >= dev->keycodemax) 754 return -EINVAL; 755 756 - if (dev->keycodesize < sizeof(dev->keycode) && 757 (ke->keycode >> (dev->keycodesize * 8))) 758 return -EINVAL; 759
··· 753 if (index >= dev->keycodemax) 754 return -EINVAL; 755 756 + if (dev->keycodesize < sizeof(ke->keycode) && 757 (ke->keycode >> (dev->keycodesize * 8))) 758 return -EINVAL; 759