linux/drivers/media/platform/sunxi/sun6i-csi
Jia-Ju Bai f3d384e366 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: 5cc7522d89 ("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>
2021-03-22 10:20:35 +01:00
..
Kconfig media: Kconfig files: use select for V4L2 subdevs and MC 2020-04-14 10:29:05 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
sun6i_csi_reg.h media: sun6i: manually fix other coding style issues 2018-11-23 05:16:24 -05:00
sun6i_csi.c media: sun6i: Remove the MBUS quirks 2020-11-18 09:01:30 +01:00
sun6i_csi.h media: platform: fix several typos 2019-03-01 09:35:21 -05:00
sun6i_video.c media: platform: sunxi: sun6i-csi: fix error return code of sun6i_video_start_streaming() 2021-03-22 10:20:35 +01:00
sun6i_video.h