aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/microcode_amd.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-09-22 13:41:07 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-09-22 13:41:07 +0100
commit27e019d758f4aa3cdbae469fb9c2fada5a021cfa (patch)
tree6d64ae5199a66e57b398088cb680587daf4b6eab /xen/arch/x86/microcode_amd.c
parent3724ccf9fa870fe57b543c353b0889bf3a9567a1 (diff)
downloadxen-27e019d758f4aa3cdbae469fb9c2fada5a021cfa.tar.gz
xen-27e019d758f4aa3cdbae469fb9c2fada5a021cfa.tar.bz2
xen-27e019d758f4aa3cdbae469fb9c2fada5a021cfa.zip
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>
Diffstat (limited to 'xen/arch/x86/microcode_amd.c')
-rw-r--r--xen/arch/x86/microcode_amd.c5
1 files changed, 1 insertions, 4 deletions
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 )