From: Borislav Petkov <bp@xxxxxxx> Date: Mon, 24 Apr 2017 13:19:34 +0200 Subject: [PATCH 2/2] x86/ras/mce_amd_inj: Preset MCE injection struct Populate the MCE injection struct before doing initial injection so that values which don't change already have proper values. Signed-off-by: Borislav Petkov <bp@xxxxxxx> --- arch/x86/ras/mce_amd_inj.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/ras/mce_amd_inj.c b/arch/x86/ras/mce_amd_inj.c index 8730c2882fff..e3b5d7e7e9ee 100644 --- a/arch/x86/ras/mce_amd_inj.c +++ b/arch/x86/ras/mce_amd_inj.c @@ -463,6 +463,8 @@ static int __init init_mce_inject(void) goto err_dfs_add; } + mce_setup(&i_mce); + return 0; err_dfs_add: -- 2.11.0 -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply. -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html