diff options
author | Yu Jian <yujian@whamcloud.com> | 2011-08-01 17:41:46 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-08-01 17:41:46 -0400 |
commit | 79a77c5ac34cc27ccbfbdf7113b41cdd93534eab (patch) | |
tree | 0217516fde94d1dea524ee4f40279cc03fc5cefa /fs/ext4/indirect.c | |
parent | 48e6061bf4bb25eec151b91f22fd90a5b9a4920a (diff) |
ext4: prevent memory leaks from ext4_mb_init_backend() on error path
In ext4_mb_init(), if the s_locality_group allocation fails it will
currently cause the allocations made in ext4_mb_init_backend() to
be leaked. Moving the ext4_mb_init_backend() allocation after the
s_locality_group allocation avoids that problem.
Signed-off-by: Yu Jian <yujian@whamcloud.com>
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/indirect.c')
0 files changed, 0 insertions, 0 deletions