diff options
-rw-r--r-- | drivers/media/video/mxc/capture/ov5642.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/mxc/capture/ov5642.c b/drivers/media/video/mxc/capture/ov5642.c index 545d9ca7240b..7d487f7dacf0 100644 --- a/drivers/media/video/mxc/capture/ov5642.c +++ b/drivers/media/video/mxc/capture/ov5642.c @@ -2272,6 +2272,8 @@ static int ioctl_s_parm(struct v4l2_int_device *s, struct v4l2_streamparm *a) } ret = ov5642_change_mode(frame_rate, a->parm.capture.capturemode, sensor->streamcap.capturemode); + if (ret < 0) + return ret; sensor->streamcap.timeperframe = *timeperframe; sensor->streamcap.capturemode = (u32)a->parm.capture.capturemode; |