[PATCH 5.4 06/68] Input: add bounds checking to input_set_capability()