mtd/drivers/mtd ftl.c,1.54,1.55

hvr at infradead.org hvr at infradead.org
Mon Jan 17 08:47:24 EST 2005


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

Modified Files:
	ftl.c 
Log Message:
fixed missing pointer assignment, for the case that mtd partitions are enabled where it would cause a 0-pointer dereferencing in mtdpart.c:mtd_erase_callback() 

Index: ftl.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/ftl.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -r1.54 -r1.55
--- ftl.c	16 Nov 2004 18:33:15 -0000	1.54
+++ ftl.c	17 Jan 2005 13:47:21 -0000	1.55
@@ -357,6 +357,7 @@
     if (!erase) 
             return -ENOMEM;
 
+    erase->mtd = part->mbd.mtd;
     erase->callback = ftl_erase_callback;
     erase->addr = xfer->Offset;
     erase->len = 1 << part->header.EraseUnitSize;





More information about the linux-mtd-cvs mailing list