projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67d7fd3
)
EDAC, amd64: Free unused memory when init_one_instance() fails
author
Yazen Ghannam
<Yazen.Ghannam@amd.com>
Tue, 24 Jan 2017 22:32:24 +0000
(16:32 -0600)
committer
Borislav Petkov
<bp@suse.de>
Sat, 28 Jan 2017 12:03:40 +0000
(13:03 +0100)
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>
drivers/edac/amd64_edac.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/edac/amd64_edac.c
b/drivers/edac/amd64_edac.c
index 4a480da713b9bfc19b470dc9988335fd821c7c0c..5fa6e5ea8be334f2b5fea142b648b8f392190fd7 100644
(file)
--- 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;