Skip to contentSkip to conversation

ACPI,APEI: Fixup parameter check for ACPI5 in EINJ

PATCH New Chen Gong 1 participant 1 message Jun 16, 2012

Subsystems (2)
lore
Share & tools
lore

Chen Gong

author
#0 lore raw

PATCH 1/1 ACPI,APEI: Fixup parameter check for ACPI5 in EINJ

We need the same checks for target address in the trigger code when using ACPI5 that we already have when using the parameter mode of ACPI4.x.

---
 drivers/acpi/apei/einj.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/apei/einj.c +1 -1
index 8e17936..8d457b5 100644
@@ -367,7 +367,7 @@ static int __einj_error_trigger(u64 trigger_paddr, u32 type,
 	 * This will cause resource conflict with regular memory.  So
 	 * remove it from trigger table resources.
 	 */
-	if (param_extension && (type & 0x0038) && param2) {
+	if ((param_extension || acpi5) && (type & 0x0038) && param2) {
 		struct apei_resources addr_resources;
 		apei_resources_init(&addr_resources);
 		trigger_param_region = einj_get_trigger_parameter_region(
Signature · 1 line
1.7.10