diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-11-12 18:09:48 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-11-30 09:52:32 +0000 |
commit | e670e41ae0f329487e5a5c357510c6798b0d80b4 (patch) | |
tree | 5634bd8be75112af54c4bdb149e2f734aa2a0e49 /fs/jffs2 | |
parent | 895fb49459227edbb4a4e5a2b5e9d12c34640f84 (diff) | |
download | linux-e670e41ae0f329487e5a5c357510c6798b0d80b4.tar.bz2 |
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>
Diffstat (limited to 'fs/jffs2')
-rw-r--r-- | fs/jffs2/readinode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jffs2/readinode.c b/fs/jffs2/readinode.c index 1a80301004b8..9c26738ef047 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'; |