linux-brain/drivers/media/platform/sunxi/sun6i-csi
Jia-Ju Bai 7db9469263 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: 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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-14 09:44:23 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
sun6i_csi.c media: Remove dev_err() usage after platform_get_irq() 2019-08-07 17:08:33 -03:00
sun6i_csi.h media: platform: fix several typos 2019-03-01 09:35:21 -05:00
sun6i_csi_reg.h media: sun6i: manually fix other coding style issues 2018-11-23 05:16:24 -05:00
sun6i_video.c media: platform: sunxi: sun6i-csi: fix error return code of sun6i_video_start_streaming() 2021-05-14 09:44:23 +02:00
sun6i_video.h