]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
x86/microcode: check proper return code.
authorBen Guthro <ben@guthro.net>
Thu, 3 Nov 2011 15:06:56 +0000 (11:06 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 9 Nov 2011 21:05:08 +0000 (16:05 -0500)
After pulling in this change from your tree, I found the following bug,
when checking an enum value, which should be considered before inclusion:

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/kernel/microcode_xen.c

index 9d2a06b5bf100ad4b9b147f76349b74ee0108a4f..6a73957dd18758dc2dfef8ed4ba50df5067ba899 100644 (file)
@@ -157,7 +157,7 @@ static enum ucode_state xen_request_microcode_user(int cpu,
        ret = UCODE_OK;
 
 out:
-       if (ret == 0)
+       if (ret == UCODE_OK)
                uci->mc = uc;
        else
                vfree(uc);