media: i2c: vd55g1: Fix return code in vd55g1_enable_streams error path

commit 5931eed35c upstream.

Enable stream was returning success even if an error occurred, fix it by
modifying the err_rpm_put return value to -EINVAL.

Signed-off-by: Benjamin Mugnier <benjamin.mugnier@foss.st.com>
Fixes: e56616d7b2 ("media: i2c: Add driver for ST VD55G1 camera sensor")
Cc: stable@vger.kernel.org
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:
Benjamin Mugnier 2025-06-11 10:48:31 +02:00 committed by Greg Kroah-Hartman
parent 873e69ab8a
commit d4fc21f156

View File

@ -1082,7 +1082,7 @@ static int vd55g1_enable_streams(struct v4l2_subdev *sd,
err_rpm_put:
pm_runtime_put(sensor->dev);
return 0;
return -EINVAL;
}
static int vd55g1_disable_streams(struct v4l2_subdev *sd,