2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-15 08:44:14 +08:00

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>
This commit is contained in:
Fabian Frederick 2014-12-27 16:01:22 +01:00 committed by Jan Kara
parent 2c561bc362
commit 6744e90b0f

View File

@ -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);
}