aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorYu Jian <[email protected]>2011-08-01 21:41:46 +0000
committerTheodore Ts'o <[email protected]>2011-08-01 21:41:46 +0000
commit79a77c5ac34cc27ccbfbdf7113b41cdd93534eab (patch)
tree0217516fde94d1dea524ee4f40279cc03fc5cefa /lib/mpi/mpi-bit.c
parentext4: use EXT4_BAD_INO for buddy cache to avoid colliding with valid inode # (diff)
downloadkernel-79a77c5ac34cc27ccbfbdf7113b41cdd93534eab.tar.gz
kernel-79a77c5ac34cc27ccbfbdf7113b41cdd93534eab.zip
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 <[email protected]> Signed-off-by: Andreas Dilger <[email protected]> Signed-off-by: "Theodore Ts'o" <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions