From: Roel Kluin Date: Mon, 7 Dec 2009 13:21:45 +0000 (+0100) Subject: UBIFS: fix return code in check_leaf X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b38882f5c066dc681679e90f1903eda323e605b1;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git UBIFS: fix return code in check_leaf Return the PTR_ERR of the correct pointer. This fixes the debugging code. Signed-off-by: Roel Kluin Signed-off-by: Artem Bityutskiy --- diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c index dbc093afd946..8a771c59ac3e 100644 --- a/fs/ubifs/debug.c +++ b/fs/ubifs/debug.c @@ -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);