mtd/drivers/mtd inftlmount.c,1.15,1.16
Kalev Lember
kalev at infradead.org
Mon Nov 22 08:50:56 EST 2004
Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv18720
Modified Files:
inftlmount.c
Log Message:
fix oops
(the instr was zeroed _after_ setting instr->mtd)
Index: inftlmount.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/inftlmount.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- inftlmount.c 5 Nov 2004 21:55:55 -0000 1.15
+++ inftlmount.c 22 Nov 2004 13:50:53 -0000 1.16
@@ -389,8 +389,6 @@
struct erase_info *instr = &inftl->instr;
int physblock;
- instr->mtd = inftl->mbd.mtd;
-
DEBUG(MTD_DEBUG_LEVEL3, "INFTL: INFTL_formatblock(inftl=%p,"
"block=%d)\n", inftl, block);
@@ -400,6 +398,7 @@
_first_? */
/* Use async erase interface, test return code */
+ instr->mtd = inftl->mbd.mtd;
instr->addr = block * inftl->EraseSize;
instr->len = inftl->mbd.mtd->erasesize;
/* Erase one physical eraseblock at a time, even though the NAND api
More information about the linux-mtd-cvs
mailing list