Skip to contentSkip to conversation

UBIFS: PTR_ERR return of wrong pointer in check_leaf()

PATCH Applied Roel Kluin 2 participants 2 messages Dec 7, 2009 – Dec 8, 2009

Subsystems (2)
lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 UBIFS: PTR_ERR return of wrong pointer in check_leaf()

Return the PTR_ERR of the correct pointer.

---
 fs/ubifs/debug.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ubifs/debug.c +1 -1
index dbc093a..8a771c5 100644
@@ -2014,7 +2014,7 @@ static int check_leaf(struct ubifs_info *c, struct ubifs_zbranch *zbr,
 		inum = key_inum_flash(c, &dent->key);
 		fscki1 = read_add_inode(c, priv, inum);
 		if (IS_ERR(fscki1)) {
-			err = PTR_ERR(fscki);
+			err = PTR_ERR(fscki1);
 			ubifs_err("error %d while processing entry node and "
 				  "trying to find parent inode node %lu",
 				  err, (unsigned long)inum);
#1 lore raw
Quoted 6 lines · Roel Kluin

Return the PTR_ERR of the correct pointer.

---
 fs/ubifs/debug.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Pushed to ubifs-2.6.git tree, thanks!

Signature · 2 lines
Best Regards,
Artem Bityutskiy (Артём Битюцкий)