Skip to content

Commit

Permalink
jffs2: Fix error return in jffs2_do_read_inode_internal()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
RoelKluin authored and David Woodhouse committed Nov 30, 2009
1 parent 895fb49 commit e670e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/jffs2/readinode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit e670e41

Please sign in to comment.