[PATCH AUTOSEL 5.10 06/25] Input: add bounds checking to input_set_capability()