summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2025-11-04 23:14:23 +0100
committerHeinrich Schuchardt <[email protected]>2025-11-15 11:36:50 +0100
commitea99509b67d92c261e8cc1d293edd8462974bc5a (patch)
tree548afc00aef3516aa1a11eb6b3380601cedb4698 /lib
parent033780768edb2cf3d115099277f50ce90400959f (diff)
efi_client: correct memset() return value
Memset() must return a pointer to the start of the updated memory block. Fixes: 476476e73b14 ("efi: Add support for loading U-Boot through an EFI stub") Signed-off-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_client/efi_stub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_client/efi_stub.c b/lib/efi_client/efi_stub.c
index a083c7f1e9b..da7972444df 100644
--- a/lib/efi_client/efi_stub.c
+++ b/lib/efi_client/efi_stub.c
@@ -110,7 +110,7 @@ void *memset(void *inptr, int ch, size_t size)
while (ptr < end)
*ptr++ = ch;
- return ptr;
+ return inptr;
}
static void jump_to_uboot(ulong cs32, ulong addr, ulong info)