mtd/drivers/mtd/nand nand_bbt.c,1.23,1.24
gleixner at infradead.org
gleixner at infradead.org
Mon Jun 28 04:25:38 EDT 2004
Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv2661
Modified Files:
nand_bbt.c
Log Message:
Set correct length. Fix buffer overflow when called from memory_bbt.
Index: nand_bbt.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand_bbt.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- nand_bbt.c 24 Jun 2004 14:59:29 -0000 1.23
+++ nand_bbt.c 28 Jun 2004 08:25:35 -0000 1.24
@@ -265,9 +265,9 @@
len = 1 << (this->bbt_erase_shift - this->page_shift);
else {
if (bd->options & NAND_BBT_SCAN2NDPAGE)
- len = 1;
- else
len = 2;
+ else
+ len = 1;
}
scanlen = mtd->oobblock + mtd->oobsize;
readlen = len * mtd->oobblock;
More information about the linux-mtd-cvs
mailing list