aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2009-03-27 19:42:54 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-03-27 19:42:54 -0400
commita7b19448ddbdc34b2b8fedc048ba154ca798667b (patch)
tree0a2fb9d4fb875b95f9cfd6ee4789da7e2aad09ad /fs/ext4
parent86db97c87f744364d5889ca8a4134ca2048b8f83 (diff)
ext4: fix typo which causes a memory leak on error path
This was found by smatch (http://repo.or.cz/w/smatch.git/) Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Cc: stable@kernel.org
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/mballoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 7f6fc41a2dde..5f3e3a3a38d6 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -2699,7 +2699,7 @@ int ext4_mb_init(struct super_block *sb, int needs_recovery)
2699 i = (sb->s_blocksize_bits + 2) * sizeof(unsigned int); 2699 i = (sb->s_blocksize_bits + 2) * sizeof(unsigned int);
2700 sbi->s_mb_maxs = kmalloc(i, GFP_KERNEL); 2700 sbi->s_mb_maxs = kmalloc(i, GFP_KERNEL);
2701 if (sbi->s_mb_maxs == NULL) { 2701 if (sbi->s_mb_maxs == NULL) {
2702 kfree(sbi->s_mb_maxs); 2702 kfree(sbi->s_mb_offsets);
2703 return -ENOMEM; 2703 return -ENOMEM;
2704 } 2704 }
2705 2705