When porting the transaction alocation interface to userspace
(commit
9074815), I missed a change in libxfs_alloc_file_space() that
could lead to a double free of a transaction pointer in an error path.
Coverity spotted it, so fix it.
Coverity-id:
1362811
Signed-off-by: Dave Chinner <david@fromorbit.com>
* Check for running out of space
*/
if (error) {
- /*
- * Free the transaction structure.
- */
ASSERT(error == -ENOSPC);
- xfs_trans_cancel(tp);
break;
}
xfs_trans_ijoin(tp, ip, 0);