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>
Fri, 26 Oct 2018 18:21:43 +0000 (11:21 -0700)
commitbced25a088e747f4022986f078fc97769a817b5a
tree32efd9e97fe31df291057420180cd1d0d0412898
parent110427278005c13e489a432049ba28e67fc2dca4
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