[PATCH 4.19 14/46] Input: add safety guards to input_set_keycode()