diff options
-rw-r--r-- | drivers/media/video/uvc/uvc_video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/uvc/uvc_video.c b/drivers/media/video/uvc/uvc_video.c index f9eb0e974051..9bc4705be78d 100644 --- a/drivers/media/video/uvc/uvc_video.c +++ b/drivers/media/video/uvc/uvc_video.c | |||
@@ -114,7 +114,7 @@ static int uvc_get_video_ctrl(struct uvc_video_device *video, | |||
114 | ctrl->wCompQuality = le16_to_cpup((__le16 *)data); | 114 | ctrl->wCompQuality = le16_to_cpup((__le16 *)data); |
115 | ret = 0; | 115 | ret = 0; |
116 | goto out; | 116 | goto out; |
117 | } else if (query == GET_DEF && probe == 1) { | 117 | } else if (query == GET_DEF && probe == 1 && ret != size) { |
118 | /* Many cameras don't support the GET_DEF request on their | 118 | /* Many cameras don't support the GET_DEF request on their |
119 | * video probe control. Warn once and return, the caller will | 119 | * video probe control. Warn once and return, the caller will |
120 | * fall back to GET_CUR. | 120 | * fall back to GET_CUR. |