]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
multiboot2: zero reserved field in memory map
authorAndrei Borzenkov <arvidjaar@gmail.com>
Tue, 23 Feb 2016 06:12:14 +0000 (09:12 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Tue, 23 Feb 2016 06:12:14 +0000 (09:12 +0300)
Documentation says, bootloader should set reserved field to zero.

Reported by Wink Saville <wink@saville.com>

grub-core/loader/multiboot_mbi2.c

index d7c19bc99b9bf9ab370683684aea478f7b6e38ba..f147d674dcdcb147cd63d3e2b18bbe6bed20a9e4 100644 (file)
@@ -420,6 +420,7 @@ grub_fill_multiboot_mmap_iter (grub_uint64_t addr, grub_uint64_t size,
   (*mmap_entry)->addr = addr;
   (*mmap_entry)->len = size;
   (*mmap_entry)->type = type;
+  (*mmap_entry)->zero = 0;
   (*mmap_entry)++;
 
   return 0;