]> git.itanic.dy.fi Git - linux-stable/commit
media: staging: starfive: camss: fix off by one in isp_enum_mbus_code()
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 28 Nov 2023 14:40:14 +0000 (17:40 +0300)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 7 Dec 2023 07:31:14 +0000 (08:31 +0100)
commitfca4797af415bd346c4b2737eee7bbbc4bf1866c
treeb5debecd71e776b073c0f70a9dfc2f86871f3303
parent608ca5a60ee47b48fec210aeb7a795a64eb5dcee
media: staging: starfive: camss: fix off by one in isp_enum_mbus_code()

These > comparisons should be >=.  The formats->fmts[] array is either
a pointer to isp_formats_sink[] or isp_formats_source[] respectively.

Fixes: e57854628f58 ("media: staging: media: starfive: camss: Add ISP driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Changhuang Liang <changhuang.liang@starfivetech.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/staging/media/starfive/camss/stf-isp.c