TencentOS-kernel/drivers/media/platform
Jia-Ju Bai 5bdbfe0239 media: platform: sunxi: sun6i-csi: fix error return code of sun6i_video_start_streaming()
[ Upstream commit f3d384e36630e2a552d874e422835606d9cf230a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-20 16:07:52 +08:00
..
am437x Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
atmel Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cadence Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cec-gpio Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
coda Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cros-ec-cec media: cros-ec-cec: do not bail on device_init_wakeup failure 2021-03-16 16:33:32 +08:00
davinci media: davinci: vpif_capture: fix potential double free 2021-03-16 16:34:53 +08:00
exynos-gsc Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
exynos4-is media: exynos4-is: Fix a reference count leak 2021-03-16 16:39:13 +08:00
marvell-ccic media: marvell-ccic: Add missed v4l2_async_notifier_cleanup() 2021-03-16 16:33:30 +08:00
meson Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
mtk-jpeg media: platform: Improve queue set up flow for bug fixing 2021-03-16 16:39:44 +08:00
mtk-mdp Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
mtk-vcodec media: mtk-vcodec: add missing put_device() call in mtk_vcodec_init_enc_pm() 2021-03-16 16:42:46 +08:00
mtk-vpu Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
omap Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
omap3isp media: omap3isp: Fix memleak in isp_probe 2021-03-16 16:38:26 +08:00
qcom media: camss: missing error code in msm_video_register() 2021-04-12 12:52:18 +08:00
rcar-vin media: rcar-vin: Fix a reference count leak. 2021-03-16 16:38:28 +08:00
rockchip/rga media: rockchip/rga: Fix a reference count leak. 2021-03-16 16:38:28 +08:00
s3c-camif media: platform: s3c-camif: Fix runtime PM imbalance on error 2021-03-16 16:39:14 +08:00
s5p-cec Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
s5p-g2d Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
s5p-jpeg Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
s5p-mfc media: s5p-mfc: Fix a reference count leak 2021-03-16 16:38:29 +08:00
seco-cec Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
sti media: platform: sti: Fix runtime PM imbalance in regs_show 2021-05-20 16:07:30 +08:00
stm32 media: stm32-dcmi: Fix a reference count leak 2021-03-16 16:38:29 +08:00
sunxi media: platform: sunxi: sun6i-csi: fix error return code of sun6i_video_start_streaming() 2021-05-20 16:07:52 +08:00
tegra-cec Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
ti-vpe media: ti-vpe: Fix a missing check and reference count leak 2021-03-16 16:38:29 +08:00
vicodec media: vicodec: add missing v4l2_ctrl_request_hdl_put() 2021-03-16 16:35:32 +08:00
vimc Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
vivid media: vivid: fix assignment of dev->fbuf_out_flags 2021-05-20 16:07:52 +08:00
vsp1 media: v4l: vsp1: Fix bru null pointer access 2021-04-12 12:53:01 +08:00
xilinx Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Kconfig Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Makefile Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
aspeed-video.c media: aspeed: fix clock handling logic 2021-05-20 16:07:52 +08:00
fsl-viu.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
imx-pxp.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
imx-pxp.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
m2m-deinterlace.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
mx2_emmaprp.c media: mx2_emmaprp: Fix memleak in emmaprp_probe 2021-03-16 16:38:28 +08:00
pxa_camera.c media: pxa_camera: declare variable when DEBUG is defined 2021-04-12 12:52:19 +08:00
rcar-fcp.c media: platform: fcp: Fix a reference count leak. 2021-03-16 16:38:28 +08:00
rcar_drif.c media: rcar_drif: Allocate v4l2_async_subdev dynamically 2021-03-16 16:38:27 +08:00
rcar_fdp1.c media: fdp1: Fix R-Car M3-N naming in debug message 2021-03-16 16:28:17 +08:00
rcar_jpu.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
renesas-ceu.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
sh_veu.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
sh_vou.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
via-camera.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
via-camera.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
video-mux.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
vim2m.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00