[PATCH AUTOSEL 5.15 06/27] Input: add bounds checking to input_set_capability()