--- zzzz-none-000/linux-3.10.107/drivers/mtd/inftlmount.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/mtd/inftlmount.c 2021-02-04 17:41:59.000000000 +0000 @@ -30,7 +30,6 @@ #include #include #include -#include #include #include #include @@ -519,7 +518,7 @@ pr_debug("INFTL Virtual Unit Chains:\n"); for (logical = 0; logical < s->nb_blocks; logical++) { block = s->VUtable[logical]; - if (block > s->nb_blocks) + if (block >= s->nb_blocks) continue; pr_debug(" LOGICAL %d --> %d ", logical, block); for (i = 0; i < s->nb_blocks; i++) {