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


Groups > linux.kernel > #1657943 > unrolled thread

[PATCH 4.9 43/94] acpi, nfit: Fix the memory error check in nfit_handle_mce()

Started byGreg Kroah-Hartman <gregkh@linuxfoundation.org>
First post2017-06-05 19:10 +0200
Last post2017-06-05 19:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 4.9 43/94] acpi, nfit: Fix the memory error check in nfit_handle_mce() Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-06-05 19:10 +0200

#1657943 — [PATCH 4.9 43/94] acpi, nfit: Fix the memory error check in nfit_handle_mce()

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2017-06-05 19:10 +0200
Subject[PATCH 4.9 43/94] acpi, nfit: Fix the memory error check in nfit_handle_mce()
Message-ID<tP3FV-5Hz-43@gated-at.bofh.it>
4.9-stable review patch.  If anyone has any objections, please let me know.

------------------

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

commit fc08a4703a418a398bbb575ac311d36d110ac786 upstream.

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>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/20170519093915.15413-3-bp@alien8.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 drivers/acpi/nfit/mce.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/acpi/nfit/mce.c
+++ b/drivers/acpi/nfit/mce.c
@@ -26,7 +26,7 @@ static int nfit_handle_mce(struct notifi
 	struct nfit_spa *nfit_spa;
 
 	/* We only care about memory errors */
-	if (!(mce->status & MCACOD))
+	if (!mce_is_memory_error(mce))
 		return NOTIFY_DONE;
 
 	/*

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web