mtd/drivers/mtd redboot.c,1.13,1.14

David Woodhouse dwmw2 at infradead.org
Sat Aug 7 17:54:59 EDT 2004


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

Modified Files:
	redboot.c 
Log Message:
Use vmalloc for buffer.


Index: redboot.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/redboot.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- redboot.c	1 Apr 2004 10:17:40 -0000	1.13
+++ redboot.c	7 Aug 2004 21:54:57 -0000	1.14
@@ -53,7 +53,7 @@
 	static char nullstring[] = "unallocated";
 #endif
 
-	buf = kmalloc(master->erasesize, GFP_KERNEL);
+	buf = vmalloc(master->erasesize, GFP_KERNEL);
 
 	if (!buf)
 		return -ENOMEM;
@@ -190,7 +190,7 @@
 		fl = fl->next;
 		kfree(old);
 	}
-	kfree(buf);
+	vfree(buf);
 	return ret;
 }
 





More information about the linux-mtd-cvs mailing list