Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6744e90b authored by Fabian Frederick's avatar Fabian Frederick Committed by Jan Kara
Browse files

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: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 2c561bc3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);
}