mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 23:32:39 +00:00
* grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
a page in protected space.
This commit is contained in:
1 parent
cb3c4a4722
commit
81afc5cce6
2 files changed
+8
No files matched your search
@@ -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. */
|
||||
|
||||
Reference in new issue
Block a user