projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd3b747
)
efi_loader: missing return in efi_get_next_variable_name()
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Tue, 19 Mar 2019 17:36:21 +0000
(18:36 +0100)
committer
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Wed, 20 Mar 2019 17:16:53 +0000
(18:16 +0100)
Add a missing return statement in efi_get_next_variable_name().
Reported-by: Coverity (CID 185834)
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_variable.c
patch
|
blob
|
history
diff --git
a/lib/efi_loader/efi_variable.c
b/lib/efi_loader/efi_variable.c
index e0d7f5736db20cfe3d1d94c4c069d93f2edd6d98..699f4184d932c1b3870951dd7d06e43ceb659d32 100644
(file)
--- a/
lib/efi_loader/efi_variable.c
+++ b/
lib/efi_loader/efi_variable.c
@@
-335,7
+335,7
@@
efi_status_t EFIAPI efi_get_next_variable_name(efi_uintn_t *variable_name_size,
EFI_ENTRY("%p \"%ls\" %pUl", variable_name_size, variable_name, vendor);
if (!variable_name_size || !variable_name || !vendor)
- EFI_EXIT(EFI_INVALID_PARAMETER);
+
return
EFI_EXIT(EFI_INVALID_PARAMETER);
if (variable_name[0]) {
/* check null-terminated string */