linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ACPI, APEI, EINJ, limit the range of einj_param
@ 2012-02-28  8:44 Chen Gong
  2012-02-28  8:54 ` Huang Ying
  0 siblings, 1 reply; 12+ messages in thread
From: Chen Gong @ 2012-02-28  8:44 UTC (permalink / raw)
  To: tony.luck, ying.huang; +Cc: lenb, linux-acpi, Chen Gong

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.

Signed-off-by: Chen Gong <gong.chen@linux.intel.com>
---
 drivers/acpi/apei/einj.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/acpi/apei/einj.c b/drivers/acpi/apei/einj.c
index 4ca087d..0323684 100644
--- a/drivers/acpi/apei/einj.c
+++ b/drivers/acpi/apei/einj.c
@@ -466,7 +466,7 @@ static int __einj_error_inject(u32 type, u64 param1, u64 param2)
 		rc = apei_exec_run(&ctx, ACPI_EINJ_SET_ERROR_TYPE);
 		if (rc)
 			return rc;
-		if (einj_param) {
+		if (param_extension && einj_param) {
 			struct einj_parameter *v4param = einj_param;
 			v4param->param1 = param1;
 			v4param->param2 = param2;
-- 
1.7.8.2.302.g17b4e


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-03-16  5:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-28  8:44 [PATCH] ACPI, APEI, EINJ, limit the range of einj_param Chen Gong
2012-02-28  8:54 ` Huang Ying
2012-02-28 18:33   ` Luck, Tony
2012-02-29  2:44     ` Chen Gong
2012-02-29 19:34       ` Luck, Tony
2012-03-02  6:54         ` Chen Gong
2012-03-02 19:42           ` Luck, Tony
2012-03-03  3:56           ` [PATCH v2] " Chen Gong
2012-03-15  8:54             ` Chen Gong
2012-03-15 16:48               ` Luck, Tony
2012-03-16  5:41                 ` Chen Gong
2012-02-29  5:38     ` [PATCH] " Huang Ying

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).