Skip to content

Commit

Permalink
ACPI, APEI, EINJ, limit the range of einj_param
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chen Gong authored and Len Brown committed Mar 30, 2012
1 parent 7ed28f2 commit 185210c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/apei/einj.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ static void *einj_get_parameter_address(void)
return v5param;
}
}
if (paddrv4) {
if (param_extension && paddrv4) {
struct einj_parameter *v4param;

v4param = acpi_os_map_memory(paddrv4, sizeof(*v4param));
Expand Down

0 comments on commit 185210c

Please sign in to comment.