diff options
author | Aliaksei Karaliou <akaraliou.dev@gmail.com> | 2017-12-21 13:18:26 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-03 10:17:10 +0100 |
commit | ac086d5fe75a5c56a78f2500bd6dcbf9137fa2f4 (patch) | |
tree | a6df30ddee5aa0ab5132dc11ec3c26618a27c3bb /fs | |
parent | 96dd200101791418675e7250b88828d71a46e80f (diff) | |
download | linux-stable-ac086d5fe75a5c56a78f2500bd6dcbf9137fa2f4.tar.gz linux-stable-ac086d5fe75a5c56a78f2500bd6dcbf9137fa2f4.tar.bz2 linux-stable-ac086d5fe75a5c56a78f2500bd6dcbf9137fa2f4.zip |
xfs: quota: fix missed destroy of qi_tree_lock
[ Upstream commit 2196881566225f3c3428d1a5f847a992944daa5b ]
xfs_qm_destroy_quotainfo() does not destroy quotainfo->qi_tree_lock
while destroys quotainfo->qi_quotaofflock.
Signed-off-by: Aliaksei Karaliou <akaraliou.dev@gmail.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_qm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_qm.c b/fs/xfs/xfs_qm.c index 2eb71027d236..30eea71405ce 100644 --- a/fs/xfs/xfs_qm.c +++ b/fs/xfs/xfs_qm.c @@ -703,6 +703,7 @@ xfs_qm_destroy_quotainfo( IRELE(qi->qi_pquotaip); qi->qi_pquotaip = NULL; } + mutex_destroy(&qi->qi_tree_lock); mutex_destroy(&qi->qi_quotaofflock); kmem_free(qi); mp->m_quotainfo = NULL; |