forked from luck/tmp_suning_uos_patched
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
313ed62a3d
commit
0b2103e886
|
@ -2871,7 +2871,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
|
|||
GFP_KERNEL);
|
||||
if (!sbi->write_io[i]) {
|
||||
err = -ENOMEM;
|
||||
goto free_options;
|
||||
goto free_bio_info;
|
||||
}
|
||||
|
||||
for (j = HOT; j < n; j++) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user