From: Roel Kluin Date: Thu, 12 Nov 2009 17:09:48 +0000 (+0100) Subject: jffs2: Fix error return in jffs2_do_read_inode_internal() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e670e41ae0f329487e5a5c357510c6798b0d80b4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git jffs2: Fix error return in jffs2_do_read_inode_internal() The returned error should stay negative Signed-off-by: Roel Kluin Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- 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';