提交 6744e90b 编写于 作者: F Fabian Frederick 提交者: Jan Kara

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: NFabian Frederick <fabf@skynet.be>
Signed-off-by: NJan Kara <jack@suse.cz>
上级 2c561bc3
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册