media: i2c: imx214: Fix uninitialized variable in imx214_set_ctrl()
commit 38985a25682c66d1a7599b0e95ceeb9c7ba89f84 upstream.
You can't pass uninitialized "ret" variables to cci_write(). It has to
start as zero.
Fixes: 4f0aeba4f155 ("media: i2c: imx214: Convert to CCI register access helpers")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: André Apitzsch <git@apitzsch.eu>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
67727c5764
commit
62bf68561d
@@ -840,7 +840,7 @@ static int imx214_s_stream(struct v4l2_subdev *subdev, int enable)
|
||||
{
|
||||
struct imx214 *imx214 = to_imx214(subdev);
|
||||
struct v4l2_subdev_state *state;
|
||||
int ret;
|
||||
int ret = 0;
|
||||
|
||||
if (enable) {
|
||||
ret = pm_runtime_resume_and_get(imx214->dev);
|
||||
|
||||
Reference in New Issue
Block a user