Skip to content

Commit 40f9816

Browse files
Zhenzhong Duangregkh
authored andcommitted
x86/mce/inject: Fix a wrong assignment of i_mce.status
[ Upstream commit 5d7f7d1 ] The original code is a nop as i_mce.status is or'ed with part of itself, fix it. Fixes: a1300e5 ("x86/ras/mce_amd_inj: Trigger deferred and thresholding errors interrupts") Signed-off-by: Zhenzhong Duan <zhenzhong.duan@gmail.com> Signed-off-by: Borislav Petkov <bp@suse.de> Acked-by: Yazen Ghannam <yazen.ghannam@amd.com> Link: https://lkml.kernel.org/r/20200611023238.3830-1-zhenzhong.duan@gmail.com Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 38de430 commit 40f9816

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/kernel/cpu/mcheck/mce-inject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ static void do_inject(void)
518518
*/
519519
if (inj_type == DFR_INT_INJ) {
520520
i_mce.status |= MCI_STATUS_DEFERRED;
521-
i_mce.status |= (i_mce.status & ~MCI_STATUS_UC);
521+
i_mce.status &= ~MCI_STATUS_UC;
522522
}
523523

524524
/*

0 commit comments

Comments
 (0)