diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2023-10-10 17:08:43 +0200 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2023-10-24 15:05:54 +0200 |
commit | d419d28261e72e1c9ec418711b3da41df2265139 (patch) | |
tree | 24d9374c8c7495a82bf47a5ad6067e0e53b32efc /arch/x86 | |
parent | ecfd41089348fa4cc767dc588367e9fdf8cb6b9d (diff) | |
download | linux-d419d28261e72e1c9ec418711b3da41df2265139.tar.gz linux-d419d28261e72e1c9ec418711b3da41df2265139.tar.bz2 linux-d419d28261e72e1c9ec418711b3da41df2265139.zip |
x86/microcode/amd: Cache builtin microcode too
save_microcode_in_initrd_amd() fails to cache builtin microcode and only
scans initrd.
Use find_blobs_in_containers() instead which covers both.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20231010150702.495139089@linutronix.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 56d8bd6b9fe9..2458379da7c5 100644 --- a/arch/x86/kernel/cpu/microcode/amd.c +++ b/arch/x86/kernel/cpu/microcode/amd.c @@ -533,7 +533,7 @@ int __init save_microcode_in_initrd_amd(unsigned int cpuid_1_eax) enum ucode_state ret; struct cpio_data cp; - cp = find_microcode_in_initrd(ucode_path); + find_blobs_in_containers(cpuid_1_eax, &cp); if (!(cp.data && cp.size)) return -EINVAL; |