mtd/drivers/mtd/chips cfi_cmdset_0020.c,1.17,1.18

joern at infradead.org joern at infradead.org
Wed Jul 13 11:45:43 EDT 2005


Update of /home/cvs/mtd/drivers/mtd/chips
In directory phoenix.infradead.org:/home/joern/mtd/drivers/mtd/chips

Modified Files:
	cfi_cmdset_0020.c 
Log Message:
Plugged a mem leak.



Index: cfi_cmdset_0020.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/cfi_cmdset_0020.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- cfi_cmdset_0020.c	20 Nov 2004 12:49:04 -0000	1.17
+++ cfi_cmdset_0020.c	13 Jul 2005 15:45:40 -0000	1.18
@@ -12,10 +12,12 @@
  * 	- scalability vs code size is completely set at compile-time
  * 	  (see include/linux/mtd/cfi.h for selection)
  *	- optimized write buffer method
- * 06/21/2002	Joern Engel <joern at wh.fh-wedel.de> and others
+ * 06/21/2002	Jörn Engel <joern at wh.fh-wedel.de> and others
  *	- modified Intel Command Set 0x0001 to support ST Advanced Architecture
  *	  (command set 0x0020)
  *	- added a writev function
+ * 07/13/2005	Jörn Engel <joern at wh.fh-wedel.de>
+ * 	- Plugged memory leak in cfi_staa_writev().
  */
 
 #include <linux/version.h>
@@ -719,6 +721,7 @@
 write_error:
 	if (retlen)
 		*retlen = totlen;
+	kfree(buffer);
 	return ret;
 }
 





More information about the linux-mtd-cvs mailing list