]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
x86/ucode/amd: Fix assertion in compare_patch()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 19 Mar 2020 15:55:26 +0000 (15:55 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 26 Mar 2020 18:57:45 +0000 (18:57 +0000)
This is clearly a typo.

Fixes: 9da23943ccd "microcode: introduce a global cache of ucode patch"
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wl@xen.org>
xen/arch/x86/cpu/microcode/amd.c

index 768fbcf3227ca126eca5e5a4727e7349e18c948f..055ab8a05976ddde3e08eee62f5f55e9319de4aa 100644 (file)
@@ -211,7 +211,7 @@ static enum microcode_match_result compare_patch(
 
     /* Both patches to compare are supposed to be applicable to local CPU. */
     ASSERT(microcode_fits(new->mc_amd) != MIS_UCODE);
-    ASSERT(microcode_fits(new->mc_amd) != MIS_UCODE);
+    ASSERT(microcode_fits(old->mc_amd) != MIS_UCODE);
 
     return compare_header(new_header, old_header);
 }