Skip to content
Snippets Groups Projects
Commit 8c82840e authored by Linus Torvalds's avatar Linus Torvalds
Browse files
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp:
  amd64_edac: Fix potential memleak
parents c86defc8 a9f0fbe2
No related branches found
No related tags found
No related merge requests found
...@@ -2679,7 +2679,7 @@ static int __init amd64_edac_init(void) ...@@ -2679,7 +2679,7 @@ static int __init amd64_edac_init(void)
mcis = kzalloc(amd_nb_num() * sizeof(mcis[0]), GFP_KERNEL); mcis = kzalloc(amd_nb_num() * sizeof(mcis[0]), GFP_KERNEL);
ecc_stngs = kzalloc(amd_nb_num() * sizeof(ecc_stngs[0]), GFP_KERNEL); ecc_stngs = kzalloc(amd_nb_num() * sizeof(ecc_stngs[0]), GFP_KERNEL);
if (!(mcis && ecc_stngs)) if (!(mcis && ecc_stngs))
goto err_ret; goto err_free;
msrs = msrs_alloc(); msrs = msrs_alloc();
if (!msrs) if (!msrs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment