[PATCH openEuler-5.10-LTS v2 09/82] Input: add bounds checking to input_set_capability()