Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1645476

[PATCH 2/7] acpi, nfit: Fix the memory error check in nfit_handle_mce()

From Borislav Petkov <bp@alien8.de>
Newsgroups linux.kernel
Subject [PATCH 2/7] acpi, nfit: Fix the memory error check in nfit_handle_mce()
Date 2017-05-19 11:50 +0200
Message-ID <tIMHM-hj-27@gated-at.bofh.it> (permalink)
References <tIMHM-hj-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Vishal Verma <vishal.l.verma@intel.com>

The check for an MCE being a memory error in the NFIT mce handler was
bogus. Use the new mce_is_memory_error() helper to detect the error
properly.

Reported-by: Tony Luck <tony.luck@intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
---
 drivers/acpi/nfit/mce.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/nfit/mce.c b/drivers/acpi/nfit/mce.c
index 3ba1c3472cf9..fd86bec98dea 100644
--- a/drivers/acpi/nfit/mce.c
+++ b/drivers/acpi/nfit/mce.c
@@ -26,7 +26,7 @@ static int nfit_handle_mce(struct notifier_block *nb, unsigned long val,
 	struct nfit_spa *nfit_spa;
 
 	/* We only care about memory errors */
-	if (!(mce->status & MCACOD))
+	if (!mce_is_memory_error(mce))
 		return NOTIFY_DONE;
 
 	/*
-- 
2.11.0

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 2/7] acpi, nfit: Fix the memory error check in nfit_handle_mce() Borislav Petkov <bp@alien8.de> - 2017-05-19 11:50 +0200
  [tip:ras/urgent] acpi, nfit: Fix the memory error check in  nfit_handle_mce() tip-bot for Vishal Verma <tipbot@zytor.com> - 2017-05-21 21:50 +0200

csiph-web