* grub-core/lib/relocator.c (malloc_in_range): Take into account that
allocate_regbeg may need to create new chunk header.
This commit is contained in:
parent
22e7dbb2bb
commit
f6bbabc373
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/lib/relocator.c (malloc_in_range): Take into account that
|
||||
allocate_regbeg may need to create new chunk header.
|
||||
|
||||
2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
Fix quoting in legacy parser.
|
||||
|
|
|
@ -597,7 +597,8 @@ malloc_in_range (struct grub_relocator *rel,
|
|||
events[N].hancestor = pa;
|
||||
N++;
|
||||
events[N].type = REG_BEG_END;
|
||||
events[N].pos = grub_vtop (p + p->size) - sizeof (*r);
|
||||
events[N].pos = grub_vtop (p + p->size) - sizeof (*r)
|
||||
- sizeof (struct grub_mm_header);
|
||||
N++;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue