x86/mce: Do not register notifiers with invalid prio
authorBorislav Petkov <bp@suse.de>
Mon, 27 Mar 2017 09:33:04 +0000 (11:33 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 28 Mar 2017 06:55:15 +0000 (08:55 +0200)
commit32b40a82e84414499bb4d635cafb9de9e45e6c38
tree7007ad416e59103d8f1bcefc5b23d871434ce8b7
parent5de97c9f6d85fd83af76e09e338b18e7adb1ae60
x86/mce: Do not register notifiers with invalid prio

This is just a defensive precaution: do not register notifiers with a
priority which would disrupt the error handling in the notifiers with
prio higher than MCE_PRIO_EDAC.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20170327093304.10683-7-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/mcheck/mce.c