* grub-core/lib/relocator.c: Fix the case when end of leftover is used.

This commit is contained in:
Vladimir Serbinenko 2014-03-26 08:48:30 +01:00
parent 68f17b2b30
commit 46b74dd3cb
2 changed files with 6 additions and 0 deletions

View file

@ -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> 2014-03-26 Fu Wei <fu.wei@linaro.org>
* grub-core/loader/arm64/linux.c: Remove redundant "0x". * grub-core/loader/arm64/linux.c: Remove redundant "0x".

View file

@ -865,6 +865,8 @@ malloc_in_range (struct grub_relocator *rel,
% GRUB_RELOCATOR_FIRMWARE_REQUESTS_QUANT; % GRUB_RELOCATOR_FIRMWARE_REQUESTS_QUANT;
struct grub_relocator_fw_leftover *lo struct grub_relocator_fw_leftover *lo
= events[last_lo].leftover; = events[last_lo].leftover;
if (offend == 0 && alloc_end != alloc_start)
offend = GRUB_RELOCATOR_FIRMWARE_REQUESTS_QUANT;
lo->freebytes[offstart / 8] lo->freebytes[offstart / 8]
&= ((1 << (8 - (start % 8))) - 1); &= ((1 << (8 - (start % 8))) - 1);
grub_memset (lo->freebytes + (offstart + 7) / 8, 0, grub_memset (lo->freebytes + (offstart + 7) / 8, 0,