mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
jffs2: Fix error return in jffs2_do_read_inode_internal()
The returned error should stay negative Signed-off-by: Roel Kluin <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
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