Skip to content

Commit f33e0c8

Browse files
committed
x86/microcode/core: Return an error only when necessary
Return an error from the late loading function which is run on each CPU only when an error has actually been encountered during the update. Signed-off-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 7ff6edf commit f33e0c8

File tree

1 file changed

+3
-3
lines changed
  • arch/x86/kernel/cpu/microcode

1 file changed

+3
-3
lines changed

arch/x86/kernel/cpu/microcode/core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,10 +409,10 @@ static int __reload_late(void *info)
409409
goto wait_for_siblings;
410410

411411
if (err >= UCODE_NFOUND) {
412-
if (err == UCODE_ERROR)
412+
if (err == UCODE_ERROR) {
413413
pr_warn("Error reloading microcode on CPU %d\n", cpu);
414-
415-
ret = -1;
414+
ret = -1;
415+
}
416416
}
417417

418418
wait_for_siblings:

0 commit comments

Comments
 (0)