diff options
author | Vasily Averin <vvs@virtuozzo.com> | 2018-11-07 10:56:28 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2018-11-07 10:56:28 -0500 |
commit | af18e35bfd01e6d65a5e3ef84ffe8b252d1628c5 (patch) | |
tree | 9da6e01c476624e5719fc0b34a95c49634211abe | |
parent | 9e463084cdb22e0b56b2dfbc50461020409a5fd3 (diff) | |
download | linux-stable-af18e35bfd01e6d65a5e3ef84ffe8b252d1628c5.tar.gz linux-stable-af18e35bfd01e6d65a5e3ef84ffe8b252d1628c5.tar.bz2 linux-stable-af18e35bfd01e6d65a5e3ef84ffe8b252d1628c5.zip |
ext4: fix possible leak of s_journal_flag_rwsem in error path
Fixes: c8585c6fcaf2 ("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
-rw-r--r-- | fs/ext4/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 92092b55db1e..53ff6c2a26ed 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -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); |