mtd/drivers/mtd/devices docprobe.c,1.33,1.34

David Woodhouse dwmw2 at infradead.org
Thu May 15 19:14:16 EDT 2003


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

Modified Files:
	docprobe.c 
Log Message:
Free mtd device on error


Index: docprobe.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/devices/docprobe.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- docprobe.c	24 Jan 2003 14:02:47 -0000	1.33
+++ docprobe.c	15 May 2003 23:14:13 -0000	1.34
@@ -248,6 +248,7 @@
 			return;
 		}
 		printk(KERN_NOTICE "Cannot find driver for DiskOnChip %s at 0x%lX\n", name, physadr);
+		kfree(mtd);
 	}
 	iounmap((void *)docptr);
 }




More information about the linux-mtd-cvs mailing list