* 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
|
@ -1,3 +1,8 @@
|
|||
2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
|
||||
case when min_align = 0.
|
||||
|
||||
2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
|
||||
|
|
|
@ -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…
Reference in a new issue