diff options
author | Borislav Petkov (AMD) <bp@alien8.de> | 2023-05-02 19:53:50 +0200 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2023-06-12 11:02:17 +0200 |
commit | a32b0f0db3f396f1c9be2fe621e77c09ec3d8e7d (patch) | |
tree | e7d9e3722ebea78b0bfbf85aba11929dfbfe3d5f /arch/x86 | |
parent | x86/microcode/amd: Remove unneeded pointer arithmetic (diff) | |
download | linux-a32b0f0db3f396f1c9be2fe621e77c09ec3d8e7d.tar.xz linux-a32b0f0db3f396f1c9be2fe621e77c09ec3d8e7d.zip |
x86/microcode/AMD: Load late on both threads too
Do the same as early loading - load on both threads.
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org>
Link: https://lore.kernel.org/r/20230605141332.25948-1-bp@alien8.de
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/cpu/microcode/amd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/microcode/amd.c b/arch/x86/kernel/cpu/microcode/amd.c index f14f4ea0b537..87208e46f7ed 100644 --- a/arch/x86/kernel/cpu/microcode/amd.c +++ b/arch/x86/kernel/cpu/microcode/amd.c @@ -700,7 +700,7 @@ static enum ucode_state apply_microcode_amd(int cpu) rdmsr(MSR_AMD64_PATCH_LEVEL, rev, dummy); /* need to apply patch? */ - if (rev >= mc_amd->hdr.patch_id) { + if (rev > mc_amd->hdr.patch_id) { ret = UCODE_OK; goto out; } |