mtd/drivers/mtd/maps pcmciamtd.c,1.56,1.57

sean at infradead.org sean at infradead.org
Sat Jan 21 08:04:25 EST 2006


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

Modified Files:
	pcmciamtd.c 
Log Message:
Fix leak and crash on reboot; add another id.

Signed-off-by: Sean Young <sean at mess.org>


Index: pcmciamtd.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/pcmciamtd.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- pcmciamtd.c	15 Jan 2006 12:05:08 -0000	1.56
+++ pcmciamtd.c	21 Jan 2006 13:04:22 -0000	1.57
@@ -711,6 +711,7 @@
 			struct pcmciamtd_dev *dev = link->priv;
 			if(dev->mtd_info) {
 				del_mtd_device(dev->mtd_info);
+				map_destroy(dev->mtd_info);
 				info("mtd%d: Removed", dev->mtd_info->index);
 			}
 			pcmciamtd_release(link);
@@ -831,6 +832,7 @@
 	PCMCIA_DEVICE_PROD_ID12("Starfish, Inc.", "REX-3000", 0x05ddca47, 0xe7d67bca),
 	PCMCIA_DEVICE_PROD_ID12("Starfish, Inc.", "REX-4100", 0x05ddca47, 0x7bc32944),
 	PCMCIA_DEVICE_PROD_ID12("SMART Modular Technologies", "20MB FLASH Card", 0x96fd8277, 0x8632fac0),
+	PCMCIA_DEVICE_PROD_ID12("Centennial Technologies, Inc.", "FL32M-20-11119", 0xef2132d8, 0x2999828f),
 	/* the following was commented out in pcmcia-cs-3.2.7 */
 	/* PCMCIA_DEVICE_PROD_ID12("RATOC Systems,Inc.", "SmartMedia ADAPTER PC Card", 0xf4a2fefe, 0x5885b2ae), */
 #ifdef CONFIG_MTD_PCMCIA_ANONYMOUS





More information about the linux-mtd-cvs mailing list