* grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
a page in protected space.
This commit is contained in:
parent
cb3c4a4722
commit
81afc5cce6
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
|
||||
a page in protected space.
|
||||
|
||||
2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
|
||||
|
|
|
@ -198,6 +198,9 @@ allocate_pages (grub_size_t prot_size, grub_size_t *align,
|
|||
{
|
||||
grub_err_t err;
|
||||
|
||||
if (prot_size == 0)
|
||||
prot_size = 1;
|
||||
|
||||
prot_size = page_align (prot_size);
|
||||
|
||||
/* Initialize the memory pointers with NULL for convenience. */
|
||||
|
|
Loading…
Reference in a new issue