f2fs: fix memory leak of write_io in fill_super()
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>
This commit is contained in:
parent
41e7c940b3
commit
e95ef46b0d
1 changed files with 1 additions and 1 deletions
|
@ -2879,7 +2879,7 @@ try_onemore:
|
||||||
GFP_KERNEL);
|
GFP_KERNEL);
|
||||||
if (!sbi->write_io[i]) {
|
if (!sbi->write_io[i]) {
|
||||||
err = -ENOMEM;
|
err = -ENOMEM;
|
||||||
goto free_options;
|
goto free_bio_info;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (j = HOT; j < n; j++) {
|
for (j = HOT; j < n; j++) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue