forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 ea08eeccae9297f7aabd2ef7f0c2517ac4549acc
kernel/drivers/mtd/nand/raw/fsl_upm.c
....@@ -136,7 +136,7 @@
136136 unsigned int i;
137137 int ret;
138138
139
- if (op->cs > NAND_MAX_CHIPS)
139
+ if (op->cs >= NAND_MAX_CHIPS)
140140 return -EINVAL;
141141
142142 if (check_only)