Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 872076f9 authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim
Browse files

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: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 6ecc308c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2875,7 +2875,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++) {