]> git.baikalelectronics.ru Git - uboot.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)
commit50a529543c76e5a721a9df748a8e586db06e6f15
tree85e069916e48fc29f385a858610f9078e8727080
parent609ecc36d43eba62ff2df3a6872c2fe0d9de7895
lib: crc32: mark static variable as __efi_runtime_data

In commit 4753c7ee669e ("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: 4753c7ee669e ("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