summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-03-29 18:11:18 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-29 18:11:18 (GMT)
commit8c82840e5414259b1963da36f82b64a755fafc75 (patch)
tree0087ca8ae4991d99fdcf93a70ca99db76812948d
parentc86defc82c18b648193b5c6aabcc6204fd6bb373 (diff)
parenta9f0fbe2bbf328f869fc5ee5a12c6a4118c32689 (diff)
downloadlinux-3.10-8c82840e5414259b1963da36f82b64a755fafc75.zip
linux-3.10-8c82840e5414259b1963da36f82b64a755fafc75.tar.gz
linux-3.10-8c82840e5414259b1963da36f82b64a755fafc75.tar.bz2
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp: amd64_edac: Fix potential memleak
-rw-r--r--drivers/edac/amd64_edac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index 0be30e9..31e71c4f 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -2679,7 +2679,7 @@ static int __init amd64_edac_init(void)
mcis = kzalloc(amd_nb_num() * sizeof(mcis[0]), GFP_KERNEL);
ecc_stngs = kzalloc(amd_nb_num() * sizeof(ecc_stngs[0]), GFP_KERNEL);
if (!(mcis && ecc_stngs))
- goto err_ret;
+ goto err_free;
msrs = msrs_alloc();
if (!msrs)