[PATCH AUTOSEL 5.17 09/31] Input: add bounds checking to input_set_capability()