projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdcf591
)
cmd/efidebug: missing initialization of load_options
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Tue, 11 Aug 2020 16:20:50 +0000
(18:20 +0200)
committer
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Thu, 13 Aug 2020 20:37:36 +0000
(22:37 +0200)
Variable load_options must be initialized to NULL to avoid a segmentation
fault when freeing the memory this variable points to.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
cmd/efidebug.c
patch
|
blob
|
history
diff --git
a/cmd/efidebug.c
b/cmd/efidebug.c
index
d00d424
..
9874838
100644
(file)
--- a/
cmd/efidebug.c
+++ b/
cmd/efidebug.c
@@
-1126,7
+1126,7
@@
static int do_efi_test_bootmgr(struct cmd_tbl *cmdtp, int flag,
efi_uintn_t exit_data_size = 0;
u16 *exit_data = NULL;
efi_status_t ret;
- void *load_options;
+ void *load_options
= NULL
;
ret = efi_bootmgr_load(&image, &load_options);
printf("efi_bootmgr_load() returned: %ld\n", ret & ~EFI_ERROR_MASK);