projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
540d4d6
)
x86/ucode/amd: Fix assertion in compare_patch()
author
Andrew Cooper
<andrew.cooper3@citrix.com>
Thu, 19 Mar 2020 15:55:26 +0000
(15:55 +0000)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/xen/arch/x86/cpu/microcode/amd.c
b/xen/arch/x86/cpu/microcode/amd.c
index 768fbcf3227ca126eca5e5a4727e7349e18c948f..055ab8a05976ddde3e08eee62f5f55e9319de4aa 100644
(file)
--- a/
xen/arch/x86/cpu/microcode/amd.c
+++ b/
xen/arch/x86/cpu/microcode/amd.c
@@
-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);
}