|
@@ -227,7 +227,8 @@ repeat_locked:
|
|
|
spin_unlock(&transaction->t_handle_lock);
|
|
|
spin_unlock(&journal->j_state_lock);
|
|
|
out:
|
|
|
- kfree(new_transaction);
|
|
|
+ if (unlikely(new_transaction)) /* It's usually NULL */
|
|
|
+ kfree(new_transaction);
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
@@ -724,7 +725,8 @@ done:
|
|
|
journal_cancel_revoke(handle, jh);
|
|
|
|
|
|
out:
|
|
|
- kfree(frozen_buffer);
|
|
|
+ if (unlikely(frozen_buffer)) /* It's usually NULL */
|
|
|
+ kfree(frozen_buffer);
|
|
|
|
|
|
JBUFFER_TRACE(jh, "exit");
|
|
|
return error;
|
|
@@ -903,7 +905,8 @@ repeat:
|
|
|
jbd_unlock_bh_state(bh);
|
|
|
out:
|
|
|
journal_put_journal_head(jh);
|
|
|
- kfree(committed_data);
|
|
|
+ if (unlikely(committed_data))
|
|
|
+ kfree(committed_data);
|
|
|
return err;
|
|
|
}
|
|
|
|