summaryrefslogtreecommitdiffstats
path: root/fs/udf
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-01-10 19:13:32 +0100
committerJan Kara <jack@suse.cz>2015-01-12 10:56:04 +0100
commitbbe48dd811474adc2df96803f910d4dc2b5e5bde (patch)
tree57fbc1bfa320f9be86c04d4677a3a4710b60329f /fs/udf
parent23b133bdc452aa441fcb9b82cbf6dd05cfd342d0 (diff)
downloadlinux-bbe48dd811474adc2df96803f910d4dc2b5e5bde.tar.gz
linux-bbe48dd811474adc2df96803f910d4dc2b5e5bde.tar.bz2
linux-bbe48dd811474adc2df96803f910d4dc2b5e5bde.zip
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: Fabian Frederick <fabf@skynet.be> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf')
-rw-r--r--fs/udf/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c
index 3ccb2f11fc76..3d35a754293a 100644
--- a/fs/udf/super.c
+++ b/fs/udf/super.c
@@ -2300,6 +2300,7 @@ static void udf_put_super(struct super_block *sb)
udf_close_lvid(sb);
brelse(sbi->s_lvid_bh);
udf_sb_free_partitions(sb);
+ mutex_destroy(&sbi->s_alloc_mutex);
kfree(sb->s_fs_info);
sb->s_fs_info = NULL;
}