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:
Keir Fraser committed 2008-09-22 13:41:07 +01:00
1 parent 3724ccf9fa
commit 27e019d758
1 file changed
+1 -4
+1 -4
View File
@@ -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 )
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.