mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 23:13:01 +02:00
media: i2c: vd55g1: Fix return code in vd55g1_enable_streams error path
commit5931eed35c
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:
parent
873e69ab8a
commit
d4fc21f156
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user