summaryrefslogtreecommitdiff
path: root/lib/efi_loader/efi_runtime.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-06-28 12:45:29 +0200
committerAlexander Graf <agraf@suse.de>2018-07-25 14:59:44 +0200
commit71c846ab84c81b0ef7786ee5ea02bb05d5ca5bb8 (patch)
treecb578ffb78d33a65f1516587e36cc0430cceea53 /lib/efi_loader/efi_runtime.c
parentbdfb894a3efbb35e184e9afece15d44bc59db43a (diff)
downloadu-boot-71c846ab84c81b0ef7786ee5ea02bb05d5ca5bb8.tar.gz
u-boot-71c846ab84c81b0ef7786ee5ea02bb05d5ca5bb8.tar.bz2
u-boot-71c846ab84c81b0ef7786ee5ea02bb05d5ca5bb8.zip
efi_loader: correct headersize EFI tables
The headersize field has to be set to the size of the whole table including the header. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib/efi_loader/efi_runtime.c')
-rw-r--r--lib/efi_loader/efi_runtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c
index cfa60b8ff7..1acb06a206 100644
--- a/lib/efi_loader/efi_runtime.c
+++ b/lib/efi_loader/efi_runtime.c
@@ -460,7 +460,7 @@ struct efi_runtime_services __efi_runtime_data efi_runtime_services = {
.hdr = {
.signature = EFI_RUNTIME_SERVICES_SIGNATURE,
.revision = EFI_SPECIFICATION_VERSION,
- .headersize = sizeof(struct efi_table_hdr),
+ .headersize = sizeof(struct efi_runtime_services),
},
.get_time = &efi_get_time_boottime,
.set_time = (void *)&efi_device_error,