[PATCH 5.17 023/158] Input: add bounds checking to input_set_capability()