Loading
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: 355a1100 ("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>