projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1104272
)
f2fs: fix memory leak of write_io in fill_super()
author
Chao Yu
<yuchao0@huawei.com>
Wed, 5 Sep 2018 06:54:01 +0000
(14:54 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 26 Oct 2018 18:21:43 +0000
(11:21 -0700)
It needs to release memory allocated for sbi->write_io in error path,
otherwise, it will cause memory leak.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/super.c
b/fs/f2fs/super.c
index f650e51c106097ac10251b9d6a4f5cfdf76aaa5f..bd8956692e12ac71c6509211ddc6d237e5e998e4 100644
(file)
--- a/
fs/f2fs/super.c
+++ b/
fs/f2fs/super.c
@@
-2871,7
+2871,7
@@
try_onemore:
GFP_KERNEL);
if (!sbi->write_io[i]) {
err = -ENOMEM;
- goto free_
options
;
+ goto free_
bio_info
;
}
for (j = HOT; j < n; j++) {