Commit ce167ff4 authored by Annie Li's avatar Annie Li Committed by Greg Kroah-Hartman
Browse files

x86/microcode/AMD: Do not return error when microcode update is not necessary



[ Upstream commit b43dc4ab ]

After

  6f059e63("x86/microcode: Clarify the late load logic"),

if the load is up-to-date, the AMD side returns UCODE_OK which leads to
load_late_locked() returning -EBADFD.

Handle UCODE_OK in the switch case to avoid this error.

  [ bp: Massage commit message. ]

Fixes: 6f059e63 ("x86/microcode: Clarify the late load logic")
Signed-off-by: default avatarAnnie Li <jiayanli@google.com>
Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250430053424.77438-1-jiayanli@google.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 4fb22310
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment