]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/microcode/amd: Use correct per CPU ucode_cpu_info
authorThomas Gleixner <tglx@linutronix.de>
Tue, 10 Oct 2023 15:08:41 +0000 (17:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2025 15:45:52 +0000 (16:45 +0100)
commit465e490c986d66dcf970847c95c907e79d62bf2f
tree06d0896d55ec759c208ffd7d9c3d66a13f25bb4c
parent5481c4a48cbb12ec568aa86698c8e20a1d5cb540
x86/microcode/amd: Use correct per CPU ucode_cpu_info

commit ecfd41089348fa4cc767dc588367e9fdf8cb6b9d upstream

find_blobs_in_containers() is invoked on every CPU but overwrites
unconditionally ucode_cpu_info of CPU0.

Fix this by using the proper CPU data and move the assignment into the
call site apply_ucode_from_containers() so that the function can be
reused.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20231010150702.433454320@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/microcode/amd.c