Commit 9232fa0
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: 355a110 ("media: synopsys: add driver for the designware mipi csi-2 receiver")
Cc: [email protected]
Suggested-by: Dan Carpenter <[email protected]>
Signed-off-by: Michael Riesch <[email protected]>
Reviewed-by: Frank Li <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>1 parent f338e77 commit 9232fa0
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| |||
0 commit comments