From: Borislav Petkov Date: Mon, 22 Jun 2009 17:42:24 +0000 (+0200) Subject: amd64_edac: fix ecc_enable_override handling X-Git-Tag: v2.6.31-rc2~80^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=30c875cbc1836a03a1acc6c998fa8a04f29f8f73;p=platform%2Fkernel%2Flinux-3.10.git 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 --- diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 3b76605..8497963 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c @@ -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 "