From: Keir Fraser Date: Mon, 22 Sep 2008 12:41:07 +0000 (+0100) Subject: x86,amd,microcode: fix hypercall return code X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14101^2~48 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=27e019d758f4aa3cdbae469fb9c2fada5a021cfa;p=xen.git x86,amd,microcode: fix hypercall return code Make the hypercall return failure if the microcode didn't apply. Signed-off-by: Christoph Egger --- diff --git a/xen/arch/x86/microcode_amd.c b/xen/arch/x86/microcode_amd.c index 77f4dd2a57..ca72f195af 100644 --- a/xen/arch/x86/microcode_amd.c +++ b/xen/arch/x86/microcode_amd.c @@ -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 )