]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: i2c: vd55g1: Fix return code in vd55g1_enable_streams error path
authorBenjamin Mugnier <benjamin.mugnier@foss.st.com>
Wed, 11 Jun 2025 08:48:31 +0000 (10:48 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Mon, 30 Jun 2025 07:06:21 +0000 (09:06 +0200)
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: e56616d7b23c ("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>
drivers/media/i2c/vd55g1.c

index 78dd22d9cab03edf4ff3e5a301f8d045e930c997..336dc3c85ac9e695f22aa524e0df6138dc76e45c 100644 (file)
@@ -1084,7 +1084,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,