summaryrefslogtreecommitdiff
path: root/lib/efi_loader/efi_hii.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-03-21 13:07:42 -0400
committerTom Rini <trini@konsulko.com>2019-03-21 13:07:42 -0400
commitb94b19e729895285cd0c9ed170d20038173d4f07 (patch)
treeeaa8af4493f2ef06e58bd5ce6a6e50d64a8f0e29 /lib/efi_loader/efi_hii.c
parent3d7891d3f3b67a0d150b38afccc0765bd19b0bd2 (diff)
parentd0bd87612f410a723d5ddb3001e805485e3efb4f (diff)
Merge tag 'efi-2019-04-rc5' of git://git.denx.de/u-boot-efi
Pull request for UEFI system for v2019.04-rc5 A bunch of small fixes. The major ones being - avoid illegal memory access in efi_allocate_pool() on 32 bit systems - avoid endless loop in HII protocol
Diffstat (limited to 'lib/efi_loader/efi_hii.c')
-rw-r--r--lib/efi_loader/efi_hii.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/efi_loader/efi_hii.c b/lib/efi_loader/efi_hii.c
index 3a966fa4dff..61b71dec621 100644
--- a/lib/efi_loader/efi_hii.c
+++ b/lib/efi_loader/efi_hii.c
@@ -227,9 +227,8 @@ out:
error:
if (stbl) {
free(stbl->language);
- if (idx > 0)
- while (--idx >= 0)
- free(stbl->strings[idx].string);
+ while (idx > 0)
+ free(stbl->strings[--idx].string);
free(stbl->strings);
}
free(stbl);