]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
x86/EFI: avoid overrunning mb_modules[]
authorJan Beulich <jbeulich@suse.com>
Fri, 17 Mar 2017 14:45:22 +0000 (15:45 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 17 Mar 2017 14:45:22 +0000 (15:45 +0100)
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>
xen/arch/x86/efi/efi-boot.h

index 94418bf7ac2f432c1ebc52ee705650247a6ad905..15f6d2ed9e220a1dd483749e023de61a10b07fc7 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)
 {