]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/mtd/inftlmount.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[karo-tx-linux.git] / drivers / mtd / inftlmount.c
index 487e64f411a5df1ed0a6e971f4d915244a52fdda..1388c8d7f309cba12ca501235c5a555a77bd4e52 100644 (file)
@@ -518,7 +518,7 @@ void INFTL_dumpVUchains(struct INFTLrecord *s)
        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++) {