[PATCH 4.9 11/31] Input: add safety guards to input_set_keycode()