]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
x86/EFI: avoid overrunning mb_modules[]
authorJan Beulich <jbeulich@suse.com>
Fri, 31 Mar 2017 06:31:53 +0000 (08:31 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 31 Mar 2017 06:31:53 +0000 (08:31 +0200)
Commit 436fb462ab ("x86/microcode: enable boot time (pre-Dom0)
loading") added a 4th module without providing an array slot for it.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: 02b37b7eff39e40828041b2fe480725ab8443258
master date: 2017-03-17 15:45:22 +0100

xen/arch/x86/efi/efi-boot.h

index 388c4ea3323ee79338ff0eee57b7f1342d19f270..637310d08df73bea2a2a3b2762ceb5dde5020cf6 100644 (file)
@@ -13,7 +13,7 @@ static struct file __initdata ucode;
 static multiboot_info_t __initdata mbi = {
     .flags = MBI_MODULES | MBI_LOADERNAME
 };
-static module_t __initdata mb_modules[3];
+static module_t __initdata mb_modules[4];
 
 static void __init edd_put_string(u8 *dst, size_t n, const char *src)
 {