mtd/fs/jffs2 build.c,1.68,1.69

dmarlin at infradead.org dmarlin at infradead.org
Thu Dec 16 15:22:21 EST 2004


Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv11053/fs/jffs2

Modified Files:
	build.c 
Log Message:
Perform vfree if MTD_NO_VIRTBLOCKS is used.


Index: build.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/build.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- build.c	27 Nov 2004 13:38:10 -0000	1.68
+++ build.c	16 Dec 2004 20:22:18 -0000	1.69
@@ -357,7 +357,11 @@
 		D1(printk(KERN_DEBUG "build_fs failed\n"));
 		jffs2_free_ino_caches(c);
 		jffs2_free_raw_node_refs(c);
-		kfree(c->blocks);
+		if (c->mtd->flags & MTD_NO_VIRTBLOCKS) {
+			vfree(c->blocks);
+		} else {
+			kfree(c->blocks);
+		}
 		return -EIO;
 	}
 





More information about the linux-mtd-cvs mailing list