[PATCH 5.4 242/340] Input: joydev - prevent potential read overflow in ioctl