Commit cd48ac51 authored by Glen Overby's avatar Glen Overby Committed by Stephen Lord

[XFS] Remove a use after free which was introduced in the debug

build.

SGI Modid: 2.5.x-xfs:slinx:148158a
parent a36f97b1
......@@ -850,15 +850,6 @@ xfs_trans_commit(
* running in simulation mode (the log is explicitly turned
* off).
*/
#if defined(XLOG_NOLOG) || defined(DEBUG)
if (xlog_debug) {
tp->t_logcb.cb_func = (void(*)(void*, int))xfs_trans_committed;
tp->t_logcb.cb_arg = tp;
error = xfs_log_notify(mp, commit_iclog, &(tp->t_logcb));
} else {
xfs_trans_committed(tp, 0);
}
#else
tp->t_logcb.cb_func = (void(*)(void*, int))xfs_trans_committed;
tp->t_logcb.cb_arg = tp;
......@@ -869,7 +860,6 @@ xfs_trans_commit(
* waiting for an item to unlock.
*/
error = xfs_log_notify(mp, commit_iclog, &(tp->t_logcb));
#endif
/*
* Once all the items of the transaction have been copied
......
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