aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/apei/einj.c
diff options
context:
space:
mode:
authorChen Gong <gong.chen@linux.intel.com>2012-03-02 22:56:43 -0500
committerLen Brown <len.brown@intel.com>2012-03-30 03:30:18 -0400
commit185210cc754754c2504afcef9d1c9cd4b8761a9c (patch)
tree81ac9a251dfd1100d3ed85c3161fbbcd488f43c3 /drivers/acpi/apei/einj.c
parent7ed28f2ed43ece424ff2fa4dedac7928bb37a23a (diff)
ACPI, APEI, EINJ, limit the range of einj_param
On the platforms with ACPI4.x support, parameter extension is not always doable, which means only parameter extension is enabled, einj_param can take effect. v2->v1: stopping early in einj_get_parameter_address for einj_param Signed-off-by: Chen Gong <gong.chen@linux.intel.com> Acked-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/apei/einj.c')
-rw-r--r--drivers/acpi/apei/einj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/apei/einj.c b/drivers/acpi/apei/einj.c
index 4ca087dd5f4f..3d3816f6d367 100644
--- a/drivers/acpi/apei/einj.c
+++ b/drivers/acpi/apei/einj.c
@@ -238,7 +238,7 @@ static void *einj_get_parameter_address(void)
238 return v5param; 238 return v5param;
239 } 239 }
240 } 240 }
241 if (paddrv4) { 241 if (param_extension && paddrv4) {
242 struct einj_parameter *v4param; 242 struct einj_parameter *v4param;
243 243
244 v4param = acpi_os_map_memory(paddrv4, sizeof(*v4param)); 244 v4param = acpi_os_map_memory(paddrv4, sizeof(*v4param));