mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
ext4: fix possible leak of s_journal_flag_rwsem in error path
Fixes: c8585c6fca
("ext4: fix races between changing inode journal ...")
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org # 4.7
This commit is contained in:
parent
9e463084cd
commit
af18e35bfd
@ -4510,6 +4510,7 @@ failed_mount6:
|
||||
percpu_counter_destroy(&sbi->s_freeinodes_counter);
|
||||
percpu_counter_destroy(&sbi->s_dirs_counter);
|
||||
percpu_counter_destroy(&sbi->s_dirtyclusters_counter);
|
||||
percpu_free_rwsem(&sbi->s_journal_flag_rwsem);
|
||||
failed_mount5:
|
||||
ext4_ext_release(sb);
|
||||
ext4_release_system_zone(sb);
|
||||
|
Loading…
Reference in New Issue
Block a user