* grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
case when min_align = 0.
This commit is contained in:
parent
24539abdb1
commit
1a11761f7d
2 changed files with 6 additions and 1 deletions
|
@ -289,7 +289,7 @@ allocate_pages (grub_size_t prot_size, grub_size_t *align,
|
|||
prot_size, 1,
|
||||
GRUB_RELOCATOR_PREFERENCE_LOW,
|
||||
1);
|
||||
for (; err && *align >= min_align; (*align)--)
|
||||
for (; err && *align + 1 > min_align; (*align)--)
|
||||
{
|
||||
grub_errno = GRUB_ERR_NONE;
|
||||
err = grub_relocator_alloc_chunk_align (relocator, &ch,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue