* grub-core/loader/i386/linux.c (allocate_pages): Allocate at least

a page in protected space.
This commit is contained in:
Vladimir Serbinenko committed 2013-10-28 14:30:29 +01:00
1 parent cb3c4a4722
commit 81afc5cce6
2 files changed
+8

No files matched your search

+3
View File
@@ -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. */