projects
/
wrapfs-4.18.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
891dd04
)
ext4: fix possible leak of s_journal_flag_rwsem in error path
author
Vasily Averin
<vvs@virtuozzo.com>
Wed, 7 Nov 2018 15:56:28 +0000
(10:56 -0500)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 21 Nov 2018 08:22:08 +0000
(09:22 +0100)
commit
af18e35bfd01e6d65a5e3ef84ffe8b252d1628c5
upstream.
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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/super.c
patch
|
blob
|
history
diff --git
a/fs/ext4/super.c
b/fs/ext4/super.c
index 895158ef0053e1b3963b57295401d1a343a77730..8b8c351fa9c593e54b88814932de8640d9f39bab 100644
(file)
--- a/
fs/ext4/super.c
+++ b/
fs/ext4/super.c
@@
-4488,6
+4488,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);