Commit 9f1330e7 authored by Enrico Scholz's avatar Enrico Scholz

media:mx6s_capture: handle case when eensor s_streamon() fails

Signed-off-by: Enrico Scholz's avatarEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
parent 0b566344
......@@ -1568,9 +1568,14 @@ static int mx6s_vidioc_streamon(struct file *file, void *priv,
return -EINVAL;
ret = vb2_streamon(&csi_dev->vb2_vidq, i);
if (!ret)
v4l2_subdev_call(sd, video, s_stream, 1);
if (ret < 0)
goto out;
ret = v4l2_subdev_call(sd, video, s_stream, 1);
if (ret < 0)
vb2_streamoff(&csi_dev->vb2_vidq, i);
out:
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment