Skip to content

Commit 2196881

Browse files
Aliaksei Karalioudjwong
authored andcommitted
xfs: quota: fix missed destroy of qi_tree_lock
xfs_qm_destroy_quotainfo() does not destroy quotainfo->qi_tree_lock while destroys quotainfo->qi_quotaofflock. Signed-off-by: Aliaksei Karaliou <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
1 parent 68c58e9 commit 2196881

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/xfs/xfs_qm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,7 @@ xfs_qm_destroy_quotainfo(
736736
IRELE(qi->qi_pquotaip);
737737
qi->qi_pquotaip = NULL;
738738
}
739+
mutex_destroy(&qi->qi_tree_lock);
739740
mutex_destroy(&qi->qi_quotaofflock);
740741
kmem_free(qi);
741742
mp->m_quotainfo = NULL;

0 commit comments

Comments
 (0)