aboutsummaryrefslogtreecommitdiff
path: root/cmd/nvedit_efi.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-05-03 07:10:17 -0400
committerTom Rini <trini@konsulko.com>2019-05-03 07:10:17 -0400
commit6e25cfe9a475e8177bad7d9f97cffead6aab6b0d (patch)
tree2a74f7339892266a8d1d9afd812e9dad38ba0593 /cmd/nvedit_efi.c
parent3570ea1f98229dc8c166dfc2693510db9167f7f8 (diff)
parent4ccf678f37731d8ec09eae8dca5f4cbe84132a52 (diff)
Merge tag 'efi-2019-07-rc2' of git://git.denx.de/u-boot-efi
Pull request for UEFI sub-system for v2019.07-rc2 This pull request provides error fixes for the handling of GPT partitions and for the UEFI subsystem.
Diffstat (limited to 'cmd/nvedit_efi.c')
-rw-r--r--cmd/nvedit_efi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/nvedit_efi.c b/cmd/nvedit_efi.c
index e65b38dbf3..2805e8182b 100644
--- a/cmd/nvedit_efi.c
+++ b/cmd/nvedit_efi.c
@@ -291,8 +291,11 @@ static int append_value(char **bufp, size_t *sizep, char *data)
if (!tmp_buf)
return -1;
- if (hex2bin((u8 *)tmp_buf, data, len) < 0)
+ if (hex2bin((u8 *)tmp_buf, data, len) < 0) {
+ printf("Error: illegal hexadecimal string\n");
+ free(tmp_buf);
return -1;
+ }
value = tmp_buf;
} else { /* string */