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:
0fb4169
)
efi_loader: check parameter in InstallConfigurationTable
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sat, 17 Feb 2018 23:08:00 +0000
(
00:08
+0100)
committer
Alexander Graf
<agraf@suse.de>
Wed, 4 Apr 2018 09:00:06 +0000
(11:00 +0200)
Check that parameter guid is not NULL. This avoids a possible NULL
pointer exception.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_boottime.c
patch
|
blob
|
history
diff --git
a/lib/efi_loader/efi_boottime.c
b/lib/efi_loader/efi_boottime.c
index 3cee8d607c8278e5c7ff02217c64ebc9cf8bfd5d..9ca2e8161ec657c77acb95f2acb178e1ae6230af 100644
(file)
--- a/
lib/efi_loader/efi_boottime.c
+++ b/
lib/efi_loader/efi_boottime.c
@@
-1333,6
+1333,9
@@
efi_status_t efi_install_configuration_table(const efi_guid_t *guid, void *table
{
int i;
+ if (!guid)
+ return EFI_INVALID_PARAMETER;
+
/* Check for guid override */
for (i = 0; i < systab.nr_tables; i++) {
if (!guidcmp(guid, &efi_conf_table[i].guid)) {