lkml.org 
[lkml]   [2020]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86: microcode: fix return value for microcode late loading
On Tue, Apr 14, 2020 at 12:55:35PM +0300, Mihai Carabas wrote:
> 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.
>
> Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>

Isn't the right fix to disable late-loading?

\
 
 \ /
  Last update: 2020-04-14 18:24    [W:0.057 / U:0.532 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site