summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2017-10-05 14:35:51 (GMT)
committerAlexander Graf <agraf@suse.de>2017-10-09 05:00:29 (GMT)
commitf7c78176d6925726d654cd84eb866c7b39da1b13 (patch)
tree182e99879a35874b40ebf241ee89b99120eb5614 /lib
parent7d963323a25f87f701aab6ced99a912230f19776 (diff)
downloadu-boot-f7c78176d6925726d654cd84eb866c7b39da1b13.tar.xz
efi_loader: call EFI_EXIT in efi_copy_mem, efi_set_mem
EFI_ENTRY and EFI_EXIT calls must match. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_loader/efi_boottime.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
index 66ce92f..b8b98f2 100644
--- a/lib/efi_loader/efi_boottime.c
+++ b/lib/efi_loader/efi_boottime.c
@@ -1868,6 +1868,7 @@ static void EFIAPI efi_copy_mem(void *destination, void *source,
{
EFI_ENTRY("%p, %p, %ld", destination, source, length);
memcpy(destination, source, length);
+ EFI_EXIT(EFI_SUCCESS);
}
/*
@@ -1885,6 +1886,7 @@ static void EFIAPI efi_set_mem(void *buffer, unsigned long size, uint8_t value)
{
EFI_ENTRY("%p, %ld, 0x%x", buffer, size, value);
memset(buffer, value, size);
+ EFI_EXIT(EFI_SUCCESS);
}
/*