From: Chen Gong <gong.chen@linux.intel.com>
To: linux-acpi@vger.kernel.org
Cc: lenb@kernel.org, tony.luck@intel.com,
Chen Gong <gong.chen@linux.intel.com>
Subject: [PATCH] ACPI,APEI: Fixup parameter check for ACPI5 in EINJ
Date: Sat, 16 Jun 2012 15:13:22 +0800 [thread overview]
Message-ID: <1339830802-10891-1-git-send-email-gong.chen@linux.intel.com> (raw)
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.
Signed-off-by: Chen Gong <gong.chen@linux.intel.com>
Tested-by: Tony Luck <tony.luck@intel.com>
---
drivers/acpi/apei/einj.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/acpi/apei/einj.c b/drivers/acpi/apei/einj.c
index 8e17936..8d457b5 100644
--- a/drivers/acpi/apei/einj.c
+++ b/drivers/acpi/apei/einj.c
@@ -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(
--
1.7.10
next reply other threads:[~2012-06-16 7:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-16 7:13 Chen Gong [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-06-16 7:10 [PATCH] ACPI,APEI: Fixup parameter check for ACPI5 in EINJ Chen Gong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1339830802-10891-1-git-send-email-gong.chen@linux.intel.com \
--to=gong.chen@linux.intel.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=tony.luck@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox