summaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
authorTao Ma <boyu.mt@taobao.com>2011-10-06 16:22:28 +0200
committerTheodore Ts'o <tytso@mit.edu>2011-10-06 16:22:28 +0200
commit7aa0baeaba4afc4fbed7aad2812a1116e6b0adcd (patch)
treea7237b599107d0adf137c465734d4b67ad83d6dd /fs/ext4/super.c
parentext4: attempt to fix race in bigalloc code path (diff)
downloadlinux-7aa0baeaba4afc4fbed7aad2812a1116e6b0adcd.tar.xz
linux-7aa0baeaba4afc4fbed7aad2812a1116e6b0adcd.zip
ext4: Free resources in ext4_mb_init()'s error paths
In commit 79a77c5ac, we move ext4_mb_init_backend after the allocation of s_locality_group to avoid memory leak in error path, but there are still some other error paths in ext4_mb_init that need to do the same work. So this patch adds all the error patch for ext4_mb_init. And all the pointers are reset to NULL in case the caller may double free them. Signed-off-by: Tao Ma <boyu.mt@taobao.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/super.c')
0 files changed, 0 insertions, 0 deletions