aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-07-07 15:36:05 +0200
committerAlexander Graf <agraf@suse.de>2018-07-25 15:00:24 +0200
commit55d8ee3b7bfc7222fb9782737b73364e78364792 (patch)
tree13df3a7dd262b22ed35b960030806d5cd60e9b38 /lib
parent8aa8360eca31b3b9f34645015df0556ce0e20e6d (diff)
downloadu-boot-55d8ee3b7bfc7222fb9782737b73364e78364792.zip
u-boot-55d8ee3b7bfc7222fb9782737b73364e78364792.tar.gz
u-boot-55d8ee3b7bfc7222fb9782737b73364e78364792.tar.bz2
efi_loader: update crc32 in InstallConfigurationTable
If the number of installed tables is changed in InstallConfigurationTable() update the crc32 of the system table. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_loader/efi_boottime.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
index 820d766..b9e54f5 100644
--- a/lib/efi_loader/efi_boottime.c
+++ b/lib/efi_loader/efi_boottime.c
@@ -1444,6 +1444,9 @@ efi_status_t efi_install_configuration_table(const efi_guid_t *guid,
systab.nr_tables = i + 1;
out:
+ /* systab.nr_tables may have changed. So we need to update the crc32 */
+ efi_update_table_header_crc32(&systab.hdr);
+
/* Notify that the configuration table was changed */
list_for_each_entry(evt, &efi_events, link) {
if (evt->group && !guidcmp(evt->group, guid)) {