x86/mce/inject: Fix a wrong assignment of i_mce.status
authorZhenzhong Duan <zhenzhong.duan@gmail.com>
Thu, 11 Jun 2020 02:32:38 +0000 (10:32 +0800)
committerBorislav Petkov <bp@suse.de>
Mon, 15 Jun 2020 11:38:55 +0000 (13:38 +0200)
commit5d7f7d1d5e01c22894dee7c9c9266500478dca99
treed856ff53c69d5c61e69ccaacea177bfb33bf233c
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407
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: a1300e505297 ("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
arch/x86/kernel/cpu/mce/inject.c