lib/relocator: Enforce GRUB_RELOCATOR_FIRMWARE_REQUESTS_QUANT divisibility by 8
Most of leftover code blindly assumes GRUB_RELOCATOR_FIRMWARE_REQUESTS_QUANT divisibility by 8. So, enforce this at compile time. Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com> Reviewed-by: Vladimir Serbinenko <phcoder@gmail.com>
This commit is contained in:
parent
17d6ac1a7d
commit
5658f35af9
@ -478,6 +478,8 @@ malloc_in_range (struct grub_relocator *rel,
|
||||
|
||||
#if GRUB_RELOCATOR_HAVE_LEFTOVERS
|
||||
{
|
||||
COMPILE_TIME_ASSERT (GRUB_RELOCATOR_FIRMWARE_REQUESTS_QUANT % 8 == 0);
|
||||
|
||||
struct grub_relocator_fw_leftover *cur;
|
||||
for (cur = leftovers; cur; cur = cur->next)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user