[PATCH 4.14 139/267] drm/i810: Prevent underflow in ioctl