diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2020-11-06 15:12:16 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-11-06 19:02:48 +0100 |
commit | 15af36596ae305aefc8c502c2d3e8c58221709eb (patch) | |
tree | 33ea31a7b097ddb962a564aad0f62de3ce1b4fe8 /arch/x86/include/asm/mce.h | |
parent | x86/mce: Assign boolean values to a bool variable (diff) | |
download | linux-15af36596ae305aefc8c502c2d3e8c58221709eb.tar.xz linux-15af36596ae305aefc8c502c2d3e8c58221709eb.zip |
x86/mce: Correct the detection of invalid notifier priorities
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
Diffstat (limited to 'arch/x86/include/asm/mce.h')
-rw-r--r-- | arch/x86/include/asm/mce.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h index a0f147893a04..fc25c88c7ff2 100644 --- a/arch/x86/include/asm/mce.h +++ b/arch/x86/include/asm/mce.h @@ -177,7 +177,8 @@ enum mce_notifier_prios { MCE_PRIO_EXTLOG, MCE_PRIO_UC, MCE_PRIO_EARLY, - MCE_PRIO_CEC + MCE_PRIO_CEC, + MCE_PRIO_HIGHEST = MCE_PRIO_CEC }; struct notifier_block; |