]> git.hungrycats.org Git - linux/commit
x86/CPU/AMD: Terminate the erratum_1386_microcode array
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 26 Nov 2024 13:47:22 +0000 (14:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 13:02:53 +0000 (14:02 +0100)
commitccfee14f08b8699132b87bc6d78e0fa75bf094dd
tree899b482feda877d6ac586eb4cfde879e63bb11c2
parentde71e9796b8d011fd4e2c3ea96bb0e78dee8256d
x86/CPU/AMD: Terminate the erratum_1386_microcode array

commit ff6cdc407f4179748f4673c39b0921503199a0ad upstream.

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: 29ba89f189528 ("x86/CPU/AMD: Improve the erratum 1386 workaround")
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org>
Link: https://lore.kernel.org/r/20241126134722.480975-1-bigeasy@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/amd.c