]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
media: synopsys: csi2rx: fix out-of-bounds check for formats array
authorMichael Riesch <michael.riesch@collabora.com>
Mon, 16 Feb 2026 12:28:47 +0000 (13:28 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 18 Mar 2026 10:21:30 +0000 (11:21 +0100)
commit9232fa05921bc0ea0bc71947440ec9a50b3ad26e
tree94c57a71d42629e2869b790698701cc892ffcab5
parentf338e77383789c0cae23ca3d48adcc5e9e137e3c
media: synopsys: csi2rx: fix out-of-bounds check for formats array

The out-of-bounds check for the format array is off by one. Fix the
check.

Fixes: 355a11004066 ("media: synopsys: add driver for the designware mipi csi-2 receiver")
Cc: stable@kernel.org
Suggested-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Michael Riesch <michael.riesch@collabora.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/synopsys/dw-mipi-csi2rx.c