* 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:
Vladimir 'phcoder' Serbinenko committed 2010-11-15 09:50:58 +01:00
1 parent 22e7dbb2bb
commit f6bbabc373
2 files changed
+7 -1

No files matched your search

+2 -1
View File
@@ -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