jffs2: Fix error return in jffs2_do_read_inode_internal()
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Nov 30 05:59:04 EST 2009
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=e670e41ae0f329487e5a5c357510c6798b0d80b4
Commit: e670e41ae0f329487e5a5c357510c6798b0d80b4
Parent: 895fb49459227edbb4a4e5a2b5e9d12c34640f84
Author: Roel Kluin <roel.kluin at gmail.com>
AuthorDate: Thu Nov 12 18:09:48 2009 +0100
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Nov 30 09:52:32 2009 +0000
jffs2: Fix error return in jffs2_do_read_inode_internal()
The returned error should stay negative
Signed-off-by: Roel Kluin <roel.kluin at gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
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 1a80301..9c26738 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';
More information about the linux-mtd-cvs
mailing list