mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86,amd,microcode: fix hypercall return code
Make the hypercall return failure if the microcode didn't apply. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
This commit is contained in:
1 parent
3724ccf9fa
commit
27e019d758
1 file changed
+1
-4
@@ -337,10 +337,7 @@ static int cpu_request_microcode(int cpu, const void *buf, size_t size)
|
||||
* lets keep searching till the latest version
|
||||
*/
|
||||
if ( error == 1 )
|
||||
{
|
||||
apply_microcode(cpu);
|
||||
error = 0;
|
||||
}
|
||||
error = apply_microcode(cpu);
|
||||
xfree(mc);
|
||||
}
|
||||
if ( offset > 0 )
|
||||
|
||||