Commit c0dd7524 authored by Zhenzhong Duan's avatar Zhenzhong Duan Committed by liwei
Browse files

x86/mce/inject: Fix a wrong assignment of i_mce.status

mainline inclusion
from mainline-v5.9-rc1
commit 5d7f7d1d
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8JXMX
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5d7f7d1d5e01c22894dee7c9c9266500478dca99



---------------------------

The original code is a nop as i_mce.status is or'ed with part of itself,
fix it.

Fixes: a1300e50 ("x86/ras/mce_amd_inj: Trigger deferred and thresholding errors interrupts")
Signed-off-by: default avatarZhenzhong Duan <zhenzhong.duan@gmail.com>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Acked-by: default avatarYazen Ghannam <yazen.ghannam@amd.com>
Link: https://lkml.kernel.org/r/20200611023238.3830-1-zhenzhong.duan@gmail.com


Signed-off-by: default avatarliwei <liwei728@huawei.com>
parent 3ed6f984
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment