mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
895fb49459
commit
e670e41ae0
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue