]> git.dujemihanovic.xyz Git - u-boot.git/commit
lib: crc32: mark static variable as __efi_runtime_data
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 18 Dec 2018 17:06:14 +0000 (18:06 +0100)
committerAlexander Graf <agraf@suse.de>
Sun, 23 Dec 2018 01:39:52 +0000 (02:39 +0100)
commit5bdb0a7cad05df35cd87ebce683eda032a8abc87
tree85e069916e48fc29f385a858610f9078e8727080
parent05aceb2b1c9d88aafcb8dfbedb24742a24d986ba
lib: crc32: mark static variable as __efi_runtime_data

In commit 483dbab9f931 ("lib: crc32: mark function crc32() as
__efi_runtime") one local static variable was missed. It did not end up in
the __efi_runtime_data section as it should.

If CONFIG_DYNAMIC_CRC_TABLE=y a data abort execption may occur when the
UEFI payload calls the SetVirtualAddressMap() runtime service.

Reported-by: Dominik Adamski <dominik.adamski@northerntech.community>
Fixes: 483dbab9f931 ("lib: crc32: mark function crc32() as __efi_runtime")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/crc32.c