mtd/drivers/mtd inftlmount.c,1.14,1.15

Kalev Lember kalev at infradead.org
Fri Nov 5 16:55:59 EST 2004


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

Modified Files:
	inftlmount.c 
Log Message:
initialize instr->mtd
without it we would get an kernel oops trying to insmod inftl


Index: inftlmount.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/inftlmount.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- inftlmount.c	9 Aug 2004 13:57:42 -0000	1.14
+++ inftlmount.c	5 Nov 2004 21:55:55 -0000	1.15
@@ -222,6 +222,8 @@
 			if (ip->Reserved0 != ip->firstUnit) {
 				struct erase_info *instr = &inftl->instr;
 
+				instr->mtd = inftl->mbd.mtd;
+
 				/*
 				 * 	Most likely this is using the
 				 * 	undocumented qiuck mount feature.
@@ -387,6 +389,8 @@
 	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);
 





More information about the linux-mtd-cvs mailing list