mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
fs/affs/super.c: destroy sbi mutex in affs_kill_sb()
Call mutex_destroy() on superblock mutex in affs_kill_sb() 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 <[email protected]> Cc: Jan Kara <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
92b20708f9
commit
4d29e571e1
1 changed files with 1 additions and 0 deletions
|
|
@ -602,6 +602,7 @@ static void affs_kill_sb(struct super_block *sb)
|
|||
affs_free_bitmap(sb);
|
||||
affs_brelse(sbi->s_root_bh);
|
||||
kfree(sbi->s_prefix);
|
||||
mutex_destroy(&sbi->s_bmlock);
|
||||
kfree(sbi);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue