[PATCH openEuler-1.0-LTS 1/1] Input: add bounds checking to input_set_capability()