Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30c875cb authored by Borislav Petkov's avatar Borislav Petkov
Browse files

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: default avatarBorislav Petkov <borislav.petkov@amd.com>
parent 584fcff4
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -2966,7 +2966,12 @@ static int amd64_check_ecc_enabled(struct amd64_pvt *pvt)
				"    Use of the override can cause "
				"    Use of the override can cause "
				"unknown side effects.\n");
				"unknown side effects.\n");
			ret = -ENODEV;
			ret = -ENODEV;
		}
		} else
			/*
			 * enable further driver loading if ECC enable is
			 * overridden.
			 */
			ret = 0;
	} else {
	} else {
		amd64_printk(KERN_INFO,
		amd64_printk(KERN_INFO,
			"ECC is enabled by BIOS, Proceeding "
			"ECC is enabled by BIOS, Proceeding "