[PATCH 4.14 22/39] Input: add safety guards to input_set_keycode()