amd64_edac: fix ecc_enable_override handling
amd64_check_ecc_enabled() returns non-zero status when ECC checking/correcting is disabled and this fails further loading of the driver even when 'ecc_enable_override' boot param is used. Fix that by clearing return status in that case. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
This commit is contained in:
parent
584fcff428
commit
30c875cbc1
1 changed files with 6 additions and 1 deletions
|
@ -2966,7 +2966,12 @@ static int amd64_check_ecc_enabled(struct amd64_pvt *pvt)
|
|||
" Use of the override can cause "
|
||||
"unknown side effects.\n");
|
||||
ret = -ENODEV;
|
||||
}
|
||||
} else
|
||||
/*
|
||||
* enable further driver loading if ECC enable is
|
||||
* overridden.
|
||||
*/
|
||||
ret = 0;
|
||||
} else {
|
||||
amd64_printk(KERN_INFO,
|
||||
"ECC is enabled by BIOS, Proceeding "
|
||||
|
|
Loading…
Reference in a new issue