[PATCH 4.9 03/25] Input: add bounds checking to input_set_capability()