x86/mce: Correct the detection of invalid notifier priorities
authorZhen Lei <thunder.leizhen@huawei.com>
Fri, 6 Nov 2020 14:12:16 +0000 (22:12 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:03 +0000 (11:53 +0100)
commit2aa2d48927a1a021c64a309b379120a3c452aebc
tree0b9077770932ddc828e25c4cd2bc10fda1913fda
parentc306918ce98bc7cb66c62481b18d7e554556d4a7
x86/mce: Correct the detection of invalid notifier priorities

[ Upstream commit 15af36596ae305aefc8c502c2d3e8c58221709eb ]

Commit

  c9c6d216ed28 ("x86/mce: Rename "first" function as "early"")

changed the enumeration of MCE notifier priorities. Correct the check
for notifier priorities to cover the new range.

 [ bp: Rewrite commit message, remove superfluous brackets in
   conditional. ]

Fixes: c9c6d216ed28 ("x86/mce: Rename "first" function as "early"")
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20201106141216.2062-2-thunder.leizhen@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/include/asm/mce.h
arch/x86/kernel/cpu/mce/core.c