linux/drivers/media/platform/sunxi
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
..
sun4i-csi media: v4l2-async: Improve v4l2_async_notifier_add_*_subdev() API 2021-02-06 09:18:53 +01:00
sun6i-csi media: platform: sunxi: sun6i-csi: fix error return code of sun6i_video_start_streaming() 2021-03-22 10:20:35 +01:00
sun8i-di media: sun8i-di: Remove the call to of_dma_configure 2020-11-18 09:01:31 +01:00
sun8i-rotate media: sunxi: sun8i-rotate.c: remove useless error message 2020-08-29 07:47:04 +02:00
Kconfig media: add SPDX headers on Kconfig and Makefile files 2020-04-14 10:29:05 +02:00
Makefile media: add SPDX headers on Kconfig and Makefile files 2020-04-14 10:29:05 +02:00