* [PATCH] UBIFS: PTR_ERR return of wrong pointer in check_leaf()
@ 2009-12-07 13:21 Roel Kluin
2009-12-08 12:25 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Roel Kluin @ 2009-12-07 13:21 UTC (permalink / raw)
To: Artem Bityutskiy, Adrian Hunter, linux-mtd, Andrew Morton, LKML
Return the PTR_ERR of the correct pointer.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
fs/ubifs/debug.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c
index dbc093a..8a771c5 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);
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] UBIFS: PTR_ERR return of wrong pointer in check_leaf()
2009-12-07 13:21 [PATCH] UBIFS: PTR_ERR return of wrong pointer in check_leaf() Roel Kluin
@ 2009-12-08 12:25 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2009-12-08 12:25 UTC (permalink / raw)
To: Roel Kluin; +Cc: Adrian Hunter, linux-mtd, Andrew Morton, LKML
On Mon, 2009-12-07 at 14:21 +0100, Roel Kluin wrote:
> Return the PTR_ERR of the correct pointer.
>
> Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
> ---
> fs/ubifs/debug.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Pushed to ubifs-2.6.git tree, thanks!
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-08 12:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-07 13:21 [PATCH] UBIFS: PTR_ERR return of wrong pointer in check_leaf() Roel Kluin
2009-12-08 12:25 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox