projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab564cb
)
EDAC, amd64_edac: Init opstate at the proper time during init
author
Borislav Petkov
<bp@suse.de>
Wed, 15 Jun 2016 23:13:18 +0000
(
01:13
+0200)
committer
Borislav Petkov
<bp@suse.de>
Wed, 15 Jun 2016 23:13:18 +0000
(
01:13
+0200)
It is useless to do it if we're loaded on unsupported hardware so do
that only after we have detected at least 1 supported AMD northbridge.
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/amd64_edac.c
patch
|
blob
|
history
diff --git
a/drivers/edac/amd64_edac.c
b/drivers/edac/amd64_edac.c
index 46784eb2edc6a3ddf2b799f55e4f7a6608d87321..8c0ec2128907cc6a7cf63a9f6668c86a0cbc8888 100644
(file)
--- a/
drivers/edac/amd64_edac.c
+++ b/
drivers/edac/amd64_edac.c
@@
-2966,11
+2966,11
@@
static int __init amd64_edac_init(void)
int err = -ENODEV;
int i;
- opstate_init();
-
if (amd_cache_northbridges() < 0)
goto err_ret;
+ opstate_init();
+
err = -ENOMEM;
ecc_stngs = kzalloc(amd_nb_num() * sizeof(ecc_stngs[0]), GFP_KERNEL);
if (!ecc_stngs)