summaryrefslogtreecommitdiff
path: root/fs/ext3
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-12-27 16:01:22 +0100
committerJan Kara <jack@suse.cz>2015-01-05 11:13:55 +0100
commit6744e90b0fa1fc6a908fa26935a5ed9e63413063 (patch)
treeafa0bd4313f6700be1f6bf425d69de194cd6e804 /fs/ext3
parent2c561bc362da5131a26ef9bd34a58918e23a019c (diff)
ext3: destroy sbi mutexes in put_super
Call mutex_destroy() on superblock mutexes in ext3_put_super(). Otherwise mutex debugging code isn't able to detect that mutex is used after being freed. Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext3')
-rw-r--r--fs/ext3/super.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c
index 9b4e7d750d4f..d4dbf3c259b3 100644
--- a/fs/ext3/super.c
+++ b/fs/ext3/super.c
@@ -466,6 +466,8 @@ static void ext3_put_super (struct super_block * sb)
}
sb->s_fs_info = NULL;
kfree(sbi->s_blockgroup_lock);
+ mutex_destroy(&sbi->s_orphan_lock);
+ mutex_destroy(&sbi->s_resize_lock);
kfree(sbi);
}