[PATCH 5.10 11/97] Input: add bounds checking to input_set_capability()