diff options
author | Yazen Ghannam <[email protected]> | 2019-11-06 01:25:01 +0000 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2019-11-06 11:10:11 +0100 |
commit | 582f94b5900a9bccca993dc16ca77364a0aa12a9 (patch) | |
tree | 53cac75f8a6da2aad235dda3116c186381914180 /net/switchdev/switchdev.c | |
parent | 1c9b08bac5bf4f4825631c885eba84461e4eed79 (diff) |
EDAC/amd64: Check for memory before fully initializing an instance
Return early before checking for ECC if the node does not have any
populated memory.
Free any cached hardware data before returning. Also, return 0 in this
case since this is not a failure. Other nodes may have memory and the
module should attempt to load an instance for them.
Move printing of hardware information to after the instance is
initialized, so that the information is only printed for nodes with
memory.
Return an error code when ECC is disabled. This check happens after
checking for memory. The module should explicitly fail to load if memory
is populated on a node and ECC is disabled.
Signed-off-by: Yazen Ghannam <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Cc: "[email protected]" <[email protected]>
Cc: James Morse <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: Robert Richter <[email protected]>
Cc: Tony Luck <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions