mtd/drivers/mtd nftlmount.c,1.38,1.39

Kalev Lember kalev at infradead.org
Fri Nov 5 17:51:43 EST 2004


Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv18749/drivers/mtd

Modified Files:
	nftlmount.c 
Log Message:
initialize instr->mtd to fix oops


Index: nftlmount.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nftlmount.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- nftlmount.c	20 Oct 2004 23:20:26 -0000	1.38
+++ nftlmount.c	5 Nov 2004 22:51:41 -0000	1.39
@@ -302,6 +302,8 @@
 	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)





More information about the linux-mtd-cvs mailing list