linux-stable/arch/x86/kernel/cpu/microcode
Mihai Carabas 9adbf3c609 x86/microcode: Fix return value for microcode late loading
The return value from stop_machine() might not be consistent.

stop_machine_cpuslocked() returns:
- zero if all functions have returned 0.
- a non-zero value if at least one of the functions returned
a non-zero value.

There is no way to know if it is negative or positive. So make
__reload_late() return 0 on success or negative otherwise.

 [ bp: Unify ret val check and touch up. ]

Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/1587497318-4438-1-git-send-email-mihai.carabas@oracle.com
2020-04-22 19:55:50 +02:00
..
amd.c x86/microcode/amd: Fix two -Wunused-but-set-variable warnings 2019-10-01 11:36:09 +02:00
core.c x86/microcode: Fix return value for microcode late loading 2020-04-22 19:55:50 +02:00
intel.c x86/microcode/intel: Issue the revision updated message only on the BSP 2019-10-01 16:06:35 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00