mtd/drivers/mtd nftlmount.c,1.39,1.40
Kalev Lember
kalev at infradead.org
Mon Nov 22 09:38:32 EST 2004
Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv18932
Modified Files:
nftlmount.c
Log Message:
fix oops
Index: nftlmount.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nftlmount.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- nftlmount.c 5 Nov 2004 22:51:41 -0000 1.39
+++ nftlmount.c 22 Nov 2004 14:38:29 -0000 1.40
@@ -302,8 +302,6 @@
struct nftl_uci1 uci;
struct erase_info *instr = &nftl->instr;
- instr->mtd = nftl->mbd.mtd;
-
/* Read the Unit Control Information #1 for Wear-Leveling */
if (MTD_READOOB(nftl->mbd.mtd, block * nftl->EraseSize + SECTORSIZE + 8,
8, &retlen, (char *)&uci) < 0)
@@ -320,6 +318,7 @@
memset(instr, 0, sizeof(struct erase_info));
/* XXX: use async erase interface, XXX: test return code */
+ instr->mtd = nftl->mbd.mtd;
instr->addr = block * nftl->EraseSize;
instr->len = nftl->EraseSize;
MTD_ERASE(nftl->mbd.mtd, instr);
More information about the linux-mtd-cvs
mailing list