f2fs: fix memory leak of write_io in fill_super()
authorChao Yu <yuchao0@huawei.com>
Wed, 5 Sep 2018 06:54:01 +0000 (14:54 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 12 Sep 2018 00:09:32 +0000 (17:09 -0700)
commit0b2103e886e6de9802e1170e57c573443286a483
treea7e01bba968ef6ca535a0671465ec01b58fdb2b8
parent313ed62a3ddc2cbe16087630910b41a87bfd9a1f
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>
fs/f2fs/super.c