[PATCH 4.14 03/33] Input: add bounds checking to input_set_capability()