diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-09-22 13:41:07 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-09-22 13:41:07 +0100 |
commit | 27e019d758f4aa3cdbae469fb9c2fada5a021cfa (patch) | |
tree | 6d64ae5199a66e57b398088cb680587daf4b6eab /xen/arch/x86/microcode_amd.c | |
parent | 3724ccf9fa870fe57b543c353b0889bf3a9567a1 (diff) | |
download | xen-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.c | 5 |
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 ) |