]> 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)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 29 Jun 2015 19:14:42 +0000 (12:14 -0700)
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>
(cherry picked from commit 33a4651e09e0d6fb6e9c1293810d8a66b734840a)
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);