aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-02-17 20:03:07 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-17 20:03:07 -0500
commitd96c757efad495378e25de47000478f571322cf2 (patch)
treea7c57b2b46dffdf9c6fb82e45f8cf69ca642baf7 /arch
parentfbe4da49f86bbc08a1f7994338522bf77d47300d (diff)
parenta2413d8b2982fb6823cdb66704938a9a345d0a7d (diff)
Merge tag 'please-pull-fixmcelog' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras
Pull mcelog regression fix from Tony Luck: "Fix regression - functions on the mce notifier chain should not be able to decide that an event should not be logged" * tag 'please-pull-fixmcelog' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras: x86/mce: Fix regression. All error records should report via /dev/mcelog
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/cpu/mcheck/mce.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
index 3be9fa69f875..3c036cb4a370 100644
--- a/arch/x86/kernel/cpu/mcheck/mce.c
+++ b/arch/x86/kernel/cpu/mcheck/mce.c
@@ -152,14 +152,11 @@ static struct mce_log mcelog = {
152void mce_log(struct mce *mce) 152void mce_log(struct mce *mce)
153{ 153{
154 unsigned next, entry; 154 unsigned next, entry;
155 int ret = 0;
156 155
157 /* Emit the trace record: */ 156 /* Emit the trace record: */
158 trace_mce_record(mce); 157 trace_mce_record(mce);
159 158
160 ret = atomic_notifier_call_chain(&x86_mce_decoder_chain, 0, mce); 159 atomic_notifier_call_chain(&x86_mce_decoder_chain, 0, mce);
161 if (ret == NOTIFY_STOP)
162 return;
163 160
164 mce->finished = 0; 161 mce->finished = 0;
165 wmb(); 162 wmb();