[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH v5 1/8] microcode/intel: remove redundent check against ucode size



This check has been done in microcode_sanity_check(). Needn't do it
again in get_matching_microcode().

Signed-off-by: Chao Gao <chao.gao@xxxxxxxxx>
---
 xen/arch/x86/microcode_intel.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/xen/arch/x86/microcode_intel.c b/xen/arch/x86/microcode_intel.c
index 9657575..4f69f4a 100644
--- a/xen/arch/x86/microcode_intel.c
+++ b/xen/arch/x86/microcode_intel.c
@@ -246,9 +246,6 @@ static int get_matching_microcode(const void *mc, unsigned 
int cpu)
                                 mc_header->sig, mc_header->pf) )
         goto find;
 
-    if ( total_size <= (get_datasize(mc_header) + MC_HEADER_SIZE) )
-        return 0;
-
     ext_header = mc + get_datasize(mc_header) + MC_HEADER_SIZE;
     ext_sigcount = ext_header->count;
     ext_sig = (void *)ext_header + EXT_HEADER_SIZE;
-- 
1.8.3.1


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.