* grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
redundant buggy overlap check.
This commit is contained in:
parent
16fc9293d6
commit
ee5207750f
2 changed files with 6 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
|
||||||
|
redundant buggy overlap check.
|
||||||
|
|
||||||
2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
|
* tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
|
||||||
|
|
|
@ -1425,12 +1425,8 @@ grub_relocator_alloc_chunk_align (struct grub_relocator *rel,
|
||||||
for (chunk2 = rel->chunks; chunk2; chunk2 = chunk2->next)
|
for (chunk2 = rel->chunks; chunk2; chunk2 = chunk2->next)
|
||||||
if ((chunk2->target <= chunk->target
|
if ((chunk2->target <= chunk->target
|
||||||
&& chunk->target < chunk2->target + chunk2->size)
|
&& chunk->target < chunk2->target + chunk2->size)
|
||||||
|| (chunk2->target <= chunk->target + size
|
|
||||||
&& chunk->target + size < chunk2->target + chunk2->size)
|
|
||||||
|| (chunk->target <= chunk2->target && chunk2->target
|
|| (chunk->target <= chunk2->target && chunk2->target
|
||||||
< chunk->target + size)
|
< chunk->target + size))
|
||||||
|| (chunk->target <= chunk2->target + chunk2->size
|
|
||||||
&& chunk2->target + chunk2->size < chunk->target + size))
|
|
||||||
{
|
{
|
||||||
if (preference == GRUB_RELOCATOR_PREFERENCE_HIGH)
|
if (preference == GRUB_RELOCATOR_PREFERENCE_HIGH)
|
||||||
chunk->target = ALIGN_DOWN (chunk2->target, align);
|
chunk->target = ALIGN_DOWN (chunk2->target, align);
|
||||||
|
|
Loading…
Reference in a new issue