f2fs: fix memory leak after kobject init failed in fill_super
authorChao Yu <chao2.yu@samsung.com>
Thu, 7 Nov 2013 02:14:51 +0000 (10:14 +0800)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Fri, 8 Nov 2013 05:10:29 +0000 (14:10 +0900)
commit1d15bd2034c9b0f9ac88fa0e4cd33e0d792b0bb0
tree15ec30357bbfd5fe1af95e1f4a281b3dd3724d36
parentfb51b5ef9c07844f80402702bd3d3002ceca5cd9
f2fs: fix memory leak after kobject init failed in fill_super

If we failed to init&add kobject when fill_super, stats info and proc object of
f2fs will not be released.
We should free them before we finish fill_super.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/super.c