* grub-core/lib/relocator.c: Fix the case when end of leftover is used.
This commit is contained in:
parent
68f17b2b30
commit
46b74dd3cb
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/lib/relocator.c: Fix the case when end of leftover is used.
|
||||
|
||||
2014-03-26 Fu Wei <fu.wei@linaro.org>
|
||||
|
||||
* grub-core/loader/arm64/linux.c: Remove redundant "0x".
|
||||
|
|
|
@ -865,6 +865,8 @@ malloc_in_range (struct grub_relocator *rel,
|
|||
% GRUB_RELOCATOR_FIRMWARE_REQUESTS_QUANT;
|
||||
struct grub_relocator_fw_leftover *lo
|
||||
= events[last_lo].leftover;
|
||||
if (offend == 0 && alloc_end != alloc_start)
|
||||
offend = GRUB_RELOCATOR_FIRMWARE_REQUESTS_QUANT;
|
||||
lo->freebytes[offstart / 8]
|
||||
&= ((1 << (8 - (start % 8))) - 1);
|
||||
grub_memset (lo->freebytes + (offstart + 7) / 8, 0,
|
||||
|
|
Loading…
Reference in a new issue