Commit 40f98169 authored by Zhenzhong Duan's avatar Zhenzhong Duan Committed by Greg Kroah-Hartman

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

[ Upstream commit 5d7f7d1d ]

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.comSigned-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 38de4308
...@@ -518,7 +518,7 @@ static void do_inject(void) ...@@ -518,7 +518,7 @@ static void do_inject(void)
*/ */
if (inj_type == DFR_INT_INJ) { if (inj_type == DFR_INT_INJ) {
i_mce.status |= MCI_STATUS_DEFERRED; i_mce.status |= MCI_STATUS_DEFERRED;
i_mce.status |= (i_mce.status & ~MCI_STATUS_UC); i_mce.status &= ~MCI_STATUS_UC;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment