[PATCH] media: platform: sunxi: sun6i-csi: fix error return code of sun6i_video_start_streaming()

Jia-Ju Bai baijiaju1990 at gmail.com
Mon Mar 8 02:54:08 GMT 2021



On 2021/3/7 20:47, Chen-Yu Tsai wrote:
> On Sat, Mar 6, 2021 at 10:15 PM Jia-Ju Bai <baijiaju1990 at gmail.com> wrote:
>> 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 at tsinghua.edu.cn>
>> Signed-off-by: Jia-Ju Bai <baijiaju1990 at gmail.com>
> This should have the tag:
>
> Fixes: 5cc7522d8965 ("media: sun6i: Add support for Allwinner CSI V3s")
>
> Please try to add them when fixing bugs. And this should also be tagged
> for stable, so
>
> Cc: <stable at kernel.org>
>
> Otherwise,
>
> Acked-by: Chen-Yu Tsai <wens at csie.org>

Thanks for the advice :)
I will add the fixes and stable tags in my future patches.


Best wishes,
Jia-Ju Bai



More information about the linux-arm-kernel mailing list