]> Pileus Git - ~andy/linux/blobdiff - fs/xfs/xfs_vnodeops.c
[XFS] Fix double free of log tickets
[~andy/linux] / fs / xfs / xfs_vnodeops.c
index c45ea278ef414b79c292e180ff8b6a8233435010..0574aadc4d3cfe287d8a88e23e82b11814225831 100644 (file)
@@ -1018,6 +1018,12 @@ xfs_inactive_symlink_rmt(
                ASSERT(XFS_FORCED_SHUTDOWN(mp));
                goto error0;
        }
+       /*
+        * transaction commit worked ok so we can drop the extra ticket
+        * reference that we gained in xfs_trans_dup()
+        */
+       xfs_log_ticket_put(tp->t_ticket);
+
        /*
         * Remove the memory for extent descriptions (just bookkeeping).
         */