x86, microcode: Fix accessing dis_ucode_ldr on 32-bit

We should be accessing it through a pointer, like on the BSP.

Tested-by: Richard Hendershot <rshendershot@mchsi.com>
Fixes: 65cef1311d ("x86, microcode: Add a disable chicken bit")
Cc: <stable@vger.kernel.org> # v3.15+
Signed-off-by: Borislav Petkov <bp@suse.de>
This commit is contained in:
Borislav Petkov 2014-11-05 17:28:06 +01:00
parent e6023367d7
commit 85be07c324
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ void __init load_ucode_bsp(void)
static bool check_loader_disabled_ap(void) static bool check_loader_disabled_ap(void)
{ {
#ifdef CONFIG_X86_32 #ifdef CONFIG_X86_32
return __pa_nodebug(dis_ucode_ldr); return *((bool *)__pa_nodebug(&dis_ucode_ldr));
#else #else
return dis_ucode_ldr; return dis_ucode_ldr;
#endif #endif