Message ID | 20210618122923.385938-8-ribalda@chromium.org |
---|---|
State | Accepted |
Commit | ffccdde5f0e17d2f0d788a9d831a027187890eaa |
Headers | show |
Series | [v10,01/21] media: v4l2-ioctl: Fix check_ext_ctrls | expand |
diff --git a/drivers/media/usb/uvc/uvc_video.c b/drivers/media/usb/uvc/uvc_video.c index a777b389a66e..daba5fe352ea 100644 --- a/drivers/media/usb/uvc/uvc_video.c +++ b/drivers/media/usb/uvc/uvc_video.c @@ -115,6 +115,11 @@ int uvc_query_ctrl(struct uvc_device *dev, u8 query, u8 unit, case 5: /* Invalid unit */ case 6: /* Invalid control */ case 7: /* Invalid Request */ + /* + * The firmware has not properly implemented + * the control or there has been a HW error. + */ + return -EIO; case 8: /* Invalid value within range */ return -EINVAL; default: /* reserved or unknown */