diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-01-10 19:13:32 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2015-01-12 10:56:04 +0100 |
commit | bbe48dd811474adc2df96803f910d4dc2b5e5bde (patch) | |
tree | 57fbc1bfa320f9be86c04d4677a3a4710b60329f /fs | |
parent | 23b133bdc452aa441fcb9b82cbf6dd05cfd342d0 (diff) | |
download | op-kernel-dev-bbe48dd811474adc2df96803f910d4dc2b5e5bde.zip op-kernel-dev-bbe48dd811474adc2df96803f910d4dc2b5e5bde.tar.gz |
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')
-rw-r--r-- | fs/udf/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c index 3ccb2f1..3d35a75 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; } |