* grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass

unknown types through.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-10-19 01:01:36 +02:00
parent f90a3cc0a8
commit fc3182c799
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
unknown types through.
2013-10-18 Vladimir Serbinenko <phcoder@gmail.com> 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove. * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.

View file

@ -156,8 +156,7 @@ grub_machine_mmap_iterate (grub_memory_hook_t hook, void *hook_data)
if (hook (entry->addr, entry->len, if (hook (entry->addr, entry->len,
/* GRUB mmaps have been defined to match with the E820 definition. /* GRUB mmaps have been defined to match with the E820 definition.
Therefore, we can just pass type through. */ Therefore, we can just pass type through. */
((entry->type <= GRUB_MACHINE_MEMORY_BADRAM) && (entry->type >= GRUB_MACHINE_MEMORY_AVAILABLE)) ? entry->type : GRUB_MEMORY_RESERVED, entry->type, hook_data))
hook_data))
break; break;
if (! cont) if (! cont)