aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-11-12 18:09:48 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-11-30 09:52:32 +0000
commite670e41ae0f329487e5a5c357510c6798b0d80b4 (patch)
tree5634bd8be75112af54c4bdb149e2f734aa2a0e49
parent895fb49459227edbb4a4e5a2b5e9d12c34640f84 (diff)
jffs2: Fix error return in jffs2_do_read_inode_internal()
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>
-rw-r--r--fs/jffs2/readinode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jffs2/readinode.c b/fs/jffs2/readinode.c
index 1a80301004b..9c26738ef04 100644
--- a/fs/jffs2/readinode.c
+++ b/fs/jffs2/readinode.c
@@ -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';