diff options
author | 2021-03-06 15:15:28 +0100 | |
---|---|---|
committer | 2021-03-22 10:20:35 +0100 | |
commit | f3d384e36630e2a552d874e422835606d9cf230a (patch) | |
tree | 1725468b952cf5122329d7c831ca02475b49cefe /include/uapi/linux/v4l2-subdev.h | |
parent | media: flexcop-usb: delete unneeded return (diff) | |
download | linux-rng-f3d384e36630e2a552d874e422835606d9cf230a.tar.xz linux-rng-f3d384e36630e2a552d874e422835606d9cf230a.zip |
media: platform: sunxi: sun6i-csi: fix error return code of sun6i_video_start_streaming()
When sun6i_video_remote_subdev() returns NULL to subdev, no error return
code of sun6i_video_start_streaming() is assigned.
To fix this bug, ret is assigned with -EINVAL in this case.
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Fixes: 5cc7522d8965 ("media: sun6i: Add support for Allwinner CSI V3s")
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'include/uapi/linux/v4l2-subdev.h')
0 files changed, 0 insertions, 0 deletions