Commit 9aa379e8 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[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,
parent 217363db
...@@ -342,7 +342,7 @@ int journal_write_metadata_buffer(transaction_t *transaction, ...@@ -342,7 +342,7 @@ int journal_write_metadata_buffer(transaction_t *transaction,
tmp = jbd_rep_kmalloc(bh_in->b_size, GFP_NOFS); tmp = jbd_rep_kmalloc(bh_in->b_size, GFP_NOFS);
jbd_lock_bh_state(bh_in); jbd_lock_bh_state(bh_in);
if (jh_in->b_frozen_data) { if (jh_in->b_frozen_data) {
kfree(new_page); kfree(tmp);
goto repeat; goto repeat;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment