diff options
author | Yazen Ghannam <Yazen.Ghannam@amd.com> | 2017-01-24 16:32:24 -0600 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2017-01-28 13:03:40 +0100 |
commit | 2b9b2c465928260f40e2f570c953881bff291bef (patch) | |
tree | 9977bcb7225597e690e7af504c45faf55d6d7826 /drivers/edac/amd64_edac.c | |
parent | 67d7fd306ef2ef1ba5cdb8ce2dfde1339d4c8136 (diff) | |
download | linux-2b9b2c465928260f40e2f570c953881bff291bef.tar.gz linux-2b9b2c465928260f40e2f570c953881bff291bef.tar.bz2 linux-2b9b2c465928260f40e2f570c953881bff291bef.zip |
EDAC, amd64: Free unused memory when init_one_instance() fails
Jump to memory freeing routines when init_one_instance() fails.
Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/1485297149-13733-3-git-send-email-Yazen.Ghannam@amd.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac/amd64_edac.c')
-rw-r--r-- | drivers/edac/amd64_edac.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 4a480da713b9..5fa6e5ea8be3 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c @@ -3363,6 +3363,8 @@ static int probe_one_instance(unsigned int nid) if (boot_cpu_data.x86 < 0x17) restore_ecc_error_reporting(s, nid, F3); + + goto err_enable; } return ret; |