Skip to content

Commit 5d7f7d1

Browse files
Zhenzhong Duansuryasaimadhu
authored andcommitted
x86/mce/inject: Fix a wrong assignment of i_mce.status
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 <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Acked-by: Yazen Ghannam <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent b3a9e3b commit 5d7f7d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ static void do_inject(void)
511511
*/
512512
if (inj_type == DFR_INT_INJ) {
513513
i_mce.status |= MCI_STATUS_DEFERRED;
514-
i_mce.status |= (i_mce.status & ~MCI_STATUS_UC);
514+
i_mce.status &= ~MCI_STATUS_UC;
515515
}
516516

517517
/*

0 commit comments

Comments
 (0)