Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e670e41a authored by Roel Kluin's avatar Roel Kluin Committed by David Woodhouse
Browse files

jffs2: Fix error return in jffs2_do_read_inode_internal()



The returned error should stay negative

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 895fb494
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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';