mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
media: i2c: ov2659: fix s_stream return value
[ Upstream commit 85c4043f1d ]
In ov2659_s_stream() return value for invoked function should be checked
and propagated.
Signed-off-by: Benoit Parrot <bparrot@ti.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e88e1d28be
commit
8caa2ee295
@@ -1201,11 +1201,15 @@ static int ov2659_s_stream(struct v4l2_subdev *sd, int on)
|
|||||||
goto unlock;
|
goto unlock;
|
||||||
}
|
}
|
||||||
|
|
||||||
ov2659_set_pixel_clock(ov2659);
|
ret = ov2659_set_pixel_clock(ov2659);
|
||||||
ov2659_set_frame_size(ov2659);
|
if (!ret)
|
||||||
ov2659_set_format(ov2659);
|
ret = ov2659_set_frame_size(ov2659);
|
||||||
ov2659_set_streaming(ov2659, 1);
|
if (!ret)
|
||||||
ov2659->streaming = on;
|
ret = ov2659_set_format(ov2659);
|
||||||
|
if (!ret) {
|
||||||
|
ov2659_set_streaming(ov2659, 1);
|
||||||
|
ov2659->streaming = on;
|
||||||
|
}
|
||||||
|
|
||||||
unlock:
|
unlock:
|
||||||
mutex_unlock(&ov2659->lock);
|
mutex_unlock(&ov2659->lock);
|
||||||
|
|||||||
Reference in New Issue
Block a user