forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-09 244b2c5ca8b14627e4a17755e5922221e121c771
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)