diff options
author | Tom Rini <trini@konsulko.com> | 2020-05-11 14:23:23 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-05-11 14:23:23 -0400 |
commit | ac14bc41692a55d5b53f73a0a5b33de2424c2cb6 (patch) | |
tree | 9b4e0a28a7b27261c187573b87e4926e0fab795a /lib/efi_loader/efi_variable.c | |
parent | bb488ac34d9fbb892d870b0cbeabdbc5dc432653 (diff) | |
parent | bdb15776f6d93a1fe7902346db06a2a9fd43381e (diff) |
Merge tag 'efi-2020-07-rc2-4' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
Pull request for UEFI sub-system for efi-2020-07-rc2-4
This pull request comprises:
* bug fixes
* documentation fixes
* a new function to determine u16 string sizes and its unit test
Diffstat (limited to 'lib/efi_loader/efi_variable.c')
-rw-r--r-- | lib/efi_loader/efi_variable.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_variable.c b/lib/efi_loader/efi_variable.c index 60c12017578..10892684d1b 100644 --- a/lib/efi_loader/efi_variable.c +++ b/lib/efi_loader/efi_variable.c @@ -767,7 +767,10 @@ static efi_status_t parse_uboot_variable(char *variable, /* guid */ c = *(name - 1); *(name - 1) = '\0'; /* guid need be null-terminated here */ - uuid_str_to_bin(guid, (unsigned char *)vendor, UUID_STR_FORMAT_GUID); + if (uuid_str_to_bin(guid, (unsigned char *)vendor, + UUID_STR_FORMAT_GUID)) + /* The only error would be EINVAL. */ + return EFI_INVALID_PARAMETER; *(name - 1) = c; /* attributes */ |