]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit165ddc119f70c5e2ef41d03d3483661ed476cecf
treed856ff53c69d5c61e69ccaacea177bfb33bf233c
parent2e0873da09585b8a2daf9ca8c2facd15f454ec3f
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: a4c49bf8c37b ("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