ext4: typo leads to small leak
PATCH 1/1 ext4: typo leads to small leak
This was found by smatch (http://repo.or.cz/w/smatch.git/)
regards,
dan carpenter
Signed-off-by Dan Carpenter <[email protected]>
fs/ext4/mballoc.c +1 -1
@@ -2693,7 +2693,7 @@ i = (sb->s_blocksize_bits +2 ) *sizeof (unsigned int ); sbi->s_mb_maxs =kmalloc (i,GFP_KERNEL );if (sbi->s_mb_maxs ==NULL ) { -kfree (sbi->s_mb_maxs); +kfree (sbi->s_mb_offsets);return -ENOMEM ; }
Quoted 6 lines · Dan Carpenter
This was found by smatch (http://repo.or.cz/w/smatch.git/)
regards,
dan carpenterSigned-off-by Dan Carpenter <[email protected]>
Reviewed-by Eric Sandeen <[email protected]>
Thanks! Maybe one for the stable trees.
Quoted 15 lines
fs/ext4/mballoc.c +1
-2@@ -2693,7 +2693,7 @@ i = (sb->s_blocksize_bits +2 ) *sizeof (unsigned int ); sbi->s_mb_maxs =kmalloc (i,GFP_KERNEL );if (sbi->s_mb_maxs ==NULL ) { -kfree (sbi->s_mb_maxs); +kfree (sbi->s_mb_offsets);return -ENOMEM ; } --To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html