From 9aa379e8475178e65203ce1f4f94e50d7be9b9e2 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 21 Oct 2003 18:21:45 -0700 Subject: [PATCH] [PATCH] JBD kfree() fix I happened to spot this kfree(of complete garbage) - it is on an oh-we-raced-retry path which is obviously exceedingly rare, --- fs/jbd/journal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c index 02a6af4d2ff63..04a96e22e5843 100644 --- a/fs/jbd/journal.c +++ b/fs/jbd/journal.c @@ -342,7 +342,7 @@ repeat: tmp = jbd_rep_kmalloc(bh_in->b_size, GFP_NOFS); jbd_lock_bh_state(bh_in); if (jh_in->b_frozen_data) { - kfree(new_page); + kfree(tmp); goto repeat; } -- 2.53.0