projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e46308
)
ext4: fix possible leak of s_journal_flag_rwsem in error path
author
Vasily Averin
<
[email protected]
>
Wed, 7 Nov 2018 15:56:28 +0000
(10:56 -0500)
committer
Theodore Ts'o
<
[email protected]
>
Wed, 7 Nov 2018 15:56:28 +0000
(10:56 -0500)
Fixes: c8585c6fcaf2 ("ext4: fix races between changing inode journal ...")
Signed-off-by: Vasily Averin <
[email protected]
>
Signed-off-by: Theodore Ts'o <
[email protected]
>
Cc:
[email protected]
# 4.7
fs/ext4/super.c
patch
|
blob
|
history
diff --git
a/fs/ext4/super.c
b/fs/ext4/super.c
index 92092b55db1ec7c7fb54c1da855efb1ab3f17120..53ff6c2a26ed999e008f17c3b0170af9a05e158e 100644
(file)
--- 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);