mtd/fs/jffs2 super.c,1.80,1.81
David Woodhouse
dwmw2 at infradead.org
Tue Jul 1 05:49:56 EDT 2003
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv14321
Modified Files:
super.c
Log Message:
Fix duplicate kfree() and put_mtd_device() in error case.
Index: super.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/super.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -r1.80 -r1.81
--- super.c 30 Jun 2003 10:58:58 -0000 1.80
+++ super.c 1 Jul 2003 09:49:53 -0000 1.81
@@ -137,8 +137,7 @@
/* Failure case... */
up_write(&sb->s_umount);
deactivate_super(sb);
- sb = ERR_PTR(ret);
- goto out_put1;
+ return ERR_PTR(ret);
}
sb->s_flags |= MS_ACTIVE;
@@ -146,7 +145,6 @@
out_put:
kfree(c);
- out_put1:
put_mtd_device(mtd);
return sb;
More information about the linux-mtd-cvs
mailing list