Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

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>

authored by

Benjamin Mugnier and committed by
Hans Verkuil
5931eed3 5b69a840

+1 -1
+1 -1
drivers/media/i2c/vd55g1.c
··· 1084 1084 1085 1085 err_rpm_put: 1086 1086 pm_runtime_put(sensor->dev); 1087 - return 0; 1087 + return -EINVAL; 1088 1088 } 1089 1089 1090 1090 static int vd55g1_disable_streams(struct v4l2_subdev *sd,