mtd/drivers/mtd/nand nand_base.c,1.131,1.132
Artem Bityuckiy
dedekind at infradead.org
Wed Feb 9 09:50:00 EST 2005
- Previous message: mtd/fs/jffs3/ecos/src os-ecos.h,3.2,3.3
- Next message: mtd/fs/jffs3 erase.c, 3.9, 3.10 gc.c, 3.11, 3.12 os-linux.h, 3.5,
3.6 scan.c, 3.13, 3.14 scan.h, 1.6, 1.7 wbuf.c, 3.15, 3.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv28010
Modified Files:
nand_base.c
Log Message:
Small bugfix. Sometimes it may be handy not to have bbt. So, this->bbt might be NULL.
Index: nand_base.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand_base.c,v
retrieving revision 1.131
retrieving revision 1.132
diff -u -r1.131 -r1.132
--- nand_base.c 9 Feb 2005 12:19:56 -0000 1.131
+++ nand_base.c 9 Feb 2005 14:49:56 -0000 1.132
@@ -461,7 +461,8 @@
/* Get block number */
block = ((int) ofs) >> this->bbt_erase_shift;
- this->bbt[block >> 2] |= 0x01 << ((block & 0x03) << 1);
+ if (this->bbt)
+ this->bbt[block >> 2] |= 0x01 << ((block & 0x03) << 1);
/* Do we have a flash based bad block table ? */
if (this->options & NAND_USE_FLASH_BBT)
- Previous message: mtd/fs/jffs3/ecos/src os-ecos.h,3.2,3.3
- Next message: mtd/fs/jffs3 erase.c, 3.9, 3.10 gc.c, 3.11, 3.12 os-linux.h, 3.5,
3.6 scan.c, 3.13, 3.14 scan.h, 1.6, 1.7 wbuf.c, 3.15, 3.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-mtd-cvs
mailing list