linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] acpi, nfit: fix the memory error check in nfit_handle_mce
@ 2017-04-20 22:18 Vishal Verma
  2017-04-20 22:21 ` Verma, Vishal L
                   ` (2 more replies)
  0 siblings, 3 replies; 28+ messages in thread
From: Vishal Verma @ 2017-04-20 22:18 UTC (permalink / raw)
  To: linux-nvdimm-hn68Rpc1hR1g9hUCZPvPmw
  Cc: linux-acpi-u79uwXL29TY76Z2rM5mHXA, Tony Luck,
	stable-u79uwXL29TY76Z2rM5mHXA

The check for an MCE being a memory error in the NFIT mce handler was
bogus. Fix it to check for the correct MCA status compound error code.

Reported-by: Tony Luck <tony.luck-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: <stable-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Signed-off-by: Vishal Verma <vishal.l.verma-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
 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 3ba1c34..23e12a0 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->status & 0xef80) == BIT(7))
 		return NOTIFY_DONE;
 
 	/*
-- 
2.9.3

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

end of thread, other threads:[~2017-05-17 19:21 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-20 22:18 [PATCH] acpi, nfit: fix the memory error check in nfit_handle_mce Vishal Verma
2017-04-20 22:21 ` Verma, Vishal L
     [not found] ` <20170420221818.23522-1-vishal.l.verma-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-04-21  2:21   ` kbuild test robot
2017-04-21 19:21 ` Dan Williams
     [not found]   ` <CAPcyv4ijU2V-4WOPysL12ByOovAXDO=Mci1D4wNDFqxRjdvT2w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-04-21 19:56     ` Verma, Vishal L
     [not found]       ` <1492804517.2738.25.camel-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-04-21 20:16         ` Luck, Tony
2017-04-21 20:19           ` Dan Williams
2017-04-21 20:27             ` Luck, Tony
     [not found]               ` <20170421202741.GA16423-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-04-21 21:07                 ` Borislav Petkov
2017-04-24 11:36                   ` [PATCH 1/2] x86/MCE: Export memory_error() Borislav Petkov
2017-04-25 21:07                     ` Vishal Verma
     [not found]                       ` <20170425210740.GA15722-PxNA6LsHknajYZd8rzuJLNh3ngVCH38I@public.gmane.org>
2017-05-10 19:31                         ` Verma, Vishal L
2017-05-10 20:04                           ` Borislav Petkov
2017-05-10 20:06                             ` Verma, Vishal L
2017-05-10 20:08                               ` Borislav Petkov
2017-05-10 21:12                                 ` Verma, Vishal L
2017-05-10 21:57                                   ` Borislav Petkov
2017-05-10 22:03                                     ` Verma, Vishal L
     [not found]                                       ` <1494453738.20330.8.camel-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-05-10 22:16                                         ` Borislav Petkov
2017-05-10 22:22                                           ` Verma, Vishal L
     [not found]                                             ` <1494454869.20330.9.camel-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-05-17 12:38                                               ` Borislav Petkov
2017-05-17 18:58                                                 ` Verma, Vishal L
2017-05-17 19:20                                                   ` Borislav Petkov
2017-04-24 11:37                   ` [PATCH 2/2] x86/ras/mce_amd_inj: Preset MCE injection struct Borislav Petkov
2017-04-26 19:59                     ` kbuild test robot
2017-04-21 20:35           ` [PATCH] acpi, nfit: fix the memory error check in nfit_handle_mce Vishal Verma
     [not found]             ` <20170421203551.GC10645-PxNA6LsHknajYZd8rzuJLNh3ngVCH38I@public.gmane.org>
2017-04-21 20:50               ` Luck, Tony
2017-04-21 20:54                 ` Vishal Verma

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).