diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-12-27 10:01:22 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2015-01-05 05:13:55 -0500 |
commit | 6744e90b0fa1fc6a908fa26935a5ed9e63413063 (patch) | |
tree | afa0bd4313f6700be1f6bf425d69de194cd6e804 | |
parent | 2c561bc362da5131a26ef9bd34a58918e23a019c (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>
-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 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) | |||
466 | } | 466 | } |
467 | sb->s_fs_info = NULL; | 467 | sb->s_fs_info = NULL; |
468 | kfree(sbi->s_blockgroup_lock); | 468 | kfree(sbi->s_blockgroup_lock); |
469 | mutex_destroy(&sbi->s_orphan_lock); | ||
470 | mutex_destroy(&sbi->s_resize_lock); | ||
469 | kfree(sbi); | 471 | kfree(sbi); |
470 | } | 472 | } |
471 | 473 | ||