lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 2 Jun 2009 08:09:28 -0400 From: Theodore Ts'o <tytso@....edu> To: stable@...nel.org Cc: linux-ext4@...r.kernel.org, Dan Carpenter <error27@...il.com>, "Theodore Ts'o" <tytso@....edu>, Chris Wright <chrisw@...s-sol.org> Subject: [PATCH,STABLE 2.6.27 16/24] ext4: fix typo which causes a memory leak on error path From: Dan Carpenter <error27@...il.com> upstream commit: a7b19448ddbdc34b2b8fedc048ba154ca798667b This was found by smatch (http://repo.or.cz/w/smatch.git/) Signed-off-by: Dan Carpenter <error27@...il.com> Signed-off-by: "Theodore Ts'o" <tytso@....edu> Cc: stable@...nel.org Signed-off-by: Chris Wright <chrisw@...s-sol.org> --- fs/ext4/mballoc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index f34dada..5f87023 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -2698,7 +2698,7 @@ int ext4_mb_init(struct super_block *sb, int needs_recovery) sbi->s_mb_maxs = kmalloc(i, GFP_KERNEL); if (sbi->s_mb_maxs == NULL) { clear_opt(sbi->s_mount_opt, MBALLOC); - kfree(sbi->s_mb_maxs); + kfree(sbi->s_mb_offsets); return -ENOMEM; } -- 1.6.3.1.1.g75fc.dirty -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists