mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 02:05:33 +00:00
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>
This commit is contained in:
parent
67d7fd306e
commit
2b9b2c4659
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user