Skip to content

Commit ff6cdc4

Browse files
Sebastian Andrzej Siewiorbp3tk0v
Sebastian Andrzej Siewior
authored andcommitted
x86/CPU/AMD: Terminate the erratum_1386_microcode array
The erratum_1386_microcode array requires an empty entry at the end. Otherwise x86_match_cpu_with_stepping() will continue iterate the array after it ended. Add an empty entry to erratum_1386_microcode to its end. Fixes: 29ba89f ("x86/CPU/AMD: Improve the erratum 1386 workaround") Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent be4ca6c commit ff6cdc4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/kernel/cpu/amd.c

+1
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,7 @@ static void init_amd_bd(struct cpuinfo_x86 *c)
798798
static const struct x86_cpu_desc erratum_1386_microcode[] = {
799799
AMD_CPU_DESC(0x17, 0x1, 0x2, 0x0800126e),
800800
AMD_CPU_DESC(0x17, 0x31, 0x0, 0x08301052),
801+
{},
801802
};
802803

803804
static void fix_erratum_1386(struct cpuinfo_x86 *c)

0 commit comments

Comments
 (0)