mtd/fs/jffs2 gc.c,1.136,1.137
David Woodhouse
dwmw2 at infradead.org
Tue Jul 20 09:44:58 EDT 2004
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv17497
Modified Files:
gc.c
Log Message:
Fix error handling when jffs2_gc_fetch_inode() fails. Not that this
should ever happen.
Index: gc.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/gc.c,v
retrieving revision 1.136
retrieving revision 1.137
diff -u -r1.136 -r1.137
--- gc.c 27 May 2004 19:06:09 -0000 1.136
+++ gc.c 20 Jul 2004 13:44:55 -0000 1.137
@@ -359,10 +359,14 @@
spin_unlock(&c->inocache_lock);
f = jffs2_gc_fetch_inode(c, inum, nlink);
- if (IS_ERR(f))
- return PTR_ERR(f);
- if (!f)
- return 0;
+ if (IS_ERR(f)) {
+ ret = PTR_ERR(f);
+ goto release_sem;
+ }
+ if (!f) {
+ ret = 0;
+ goto release_sem;
+ }
ret = jffs2_garbage_collect_live(c, jeb, raw, f);
More information about the linux-mtd-cvs
mailing list