mtd/drivers/mtd/nand nand_bbt.c,1.14,1.15
gleixner at infradead.org
gleixner at infradead.org
Wed Jun 16 11:27:45 EDT 2004
Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv5285
Modified Files:
nand_bbt.c
Log Message:
Do not update md, if md == NULL. Pointed out by Dan Brown <dan_brown at ieee dot org>
Index: nand_bbt.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand_bbt.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- nand_bbt.c 4 Jun 2004 08:34:39 -0000 1.14
+++ nand_bbt.c 16 Jun 2004 15:27:42 -0000 1.15
@@ -794,7 +794,8 @@
/* Prevent the bbt regions from erasing / writing */
mark_bbt_region (mtd, td);
- mark_bbt_region (mtd, md);
+ if (md)
+ mark_bbt_region (mtd, md);
kfree (buf);
return res;
More information about the linux-mtd-cvs
mailing list