diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2021-08-29 11:52:44 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-09-04 12:03:57 +0200 |
commit | f3a343d7339acf1d531e438e15fef3c7975cfdcf (patch) | |
tree | dc0776611d802cb400f322b786044192ffad1605 /lib/efi_loader/efi_var_common.c | |
parent | 1ea133acd64eb0099865b0649b1d039ef63787ee (diff) |
efi_loader: rounding of image size
We should not first allocate memory and then report a rounded up value as
image size. Instead first round up according to section allocation and then
allocate the memory.
Fixes: 82786754b9d2 ("efi_loader: ImageSize must be multiple of SectionAlignment")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'lib/efi_loader/efi_var_common.c')
0 files changed, 0 insertions, 0 deletions