jffs2: Fix error return in jffs2_do_read_inode_internal()
authorRoel Kluin <roel.kluin@gmail.com>
Thu, 12 Nov 2009 17:09:48 +0000 (18:09 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 30 Nov 2009 09:52:32 +0000 (09:52 +0000)
The returned error should stay negative

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
fs/jffs2/readinode.c

index 1a80301004b8d82806c6dcdbf90a9bb4cbd71d5a..9c26738ef047f8874756a760e221b0fcb550f335 100644 (file)
@@ -1284,7 +1284,7 @@ static int jffs2_do_read_inode_internal(struct jffs2_sb_info *c,
                                f->target = NULL;
                                mutex_unlock(&f->sem);
                                jffs2_do_clear_inode(c, f);
-                               return -ret;
+                               return ret;
                        }
 
                        f->target[je32_to_cpu(latest_node->csize)] = '\0';