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

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

udf: destroy sbi mutex in put_super



Call mutex_destroy() on superblock mutex in udf_put_super()
otherwise mutex debugging code isn't able to detect that
mutex is used after being freed.
(thanks to Jan Kara for complete definition).

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 23b133bd
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -2300,6 +2300,7 @@ static void udf_put_super(struct super_block *sb)
		udf_close_lvid(sb);
		udf_close_lvid(sb);
	brelse(sbi->s_lvid_bh);
	brelse(sbi->s_lvid_bh);
	udf_sb_free_partitions(sb);
	udf_sb_free_partitions(sb);
	mutex_destroy(&sbi->s_alloc_mutex);
	kfree(sb->s_fs_info);
	kfree(sb->s_fs_info);
	sb->s_fs_info = NULL;
	sb->s_fs_info = NULL;
}
}