diff options
author | Aliaksei Karaliou <akaraliou.dev@gmail.com> | 2017-12-21 13:18:26 -0800 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-01-02 10:16:32 -0800 |
commit | 2196881566225f3c3428d1a5f847a992944daa5b (patch) | |
tree | 8754aabea523ce277378ab4d0c2dbcc5bb1539bc /fs/xfs/xfs_qm.c | |
parent | 68c58e9b9a88c1a9d0c2eaf6c7acefb00f5fbbfb (diff) | |
download | op-kernel-dev-2196881566225f3c3428d1a5f847a992944daa5b.zip op-kernel-dev-2196881566225f3c3428d1a5f847a992944daa5b.tar.gz |
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 <akaraliou.dev@gmail.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_qm.c')
-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 ec952df..d005311 100644 --- a/fs/xfs/xfs_qm.c +++ b/fs/xfs/xfs_qm.c @@ -736,6 +736,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; |