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

Commit b38882f5 authored by Roel Kluin's avatar Roel Kluin Committed by Artem Bityutskiy
Browse files

UBIFS: fix return code in check_leaf



Return the PTR_ERR of the correct pointer. This fixes the debugging code.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent 6afaf8a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2014,7 +2014,7 @@ static int check_leaf(struct ubifs_info *c, struct ubifs_zbranch *zbr,
		inum = key_inum_flash(c, &dent->key);
		inum = key_inum_flash(c, &dent->key);
		fscki1 = read_add_inode(c, priv, inum);
		fscki1 = read_add_inode(c, priv, inum);
		if (IS_ERR(fscki1)) {
		if (IS_ERR(fscki1)) {
			err = PTR_ERR(fscki);
			err = PTR_ERR(fscki1);
			ubifs_err("error %d while processing entry node and "
			ubifs_err("error %d while processing entry node and "
				  "trying to find parent inode node %lu",
				  "trying to find parent inode node %lu",
				  err, (unsigned long)inum);
				  err, (unsigned long)inum);