diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-12-27 16:01:22 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2015-01-05 11:13:55 +0100 |
commit | 6744e90b0fa1fc6a908fa26935a5ed9e63413063 (patch) | |
tree | afa0bd4313f6700be1f6bf425d69de194cd6e804 /fs/ext3/super.c | |
parent | 2c561bc362da5131a26ef9bd34a58918e23a019c (diff) | |
download | op-kernel-dev-6744e90b0fa1fc6a908fa26935a5ed9e63413063.zip op-kernel-dev-6744e90b0fa1fc6a908fa26935a5ed9e63413063.tar.gz |
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/super.c')
-rw-r--r-- | fs/ext3/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c index 9b4e7d7..d4dbf3c 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); } |