projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
313ed62
)
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>
Wed, 12 Sep 2018 00:09:32 +0000
(17:09 -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
|
history
diff --git
a/fs/f2fs/super.c
b/fs/f2fs/super.c
index 968746e23feb895f3c7ed7411bae3cef952641d4..2f55713f7f9909c9710920a6d50fe33bf5f932bd 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++) {