Skip to content
Snippets Groups Projects
Commit eb68b4ef authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Alexander Graf
Browse files

efi_loader: check parameter in InstallConfigurationTable


Check that parameter guid is not NULL. This avoids a possible NULL
pointer exception.

Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 0fb4169e
No related branches found
No related tags found
No related merge requests found
...@@ -1333,6 +1333,9 @@ efi_status_t efi_install_configuration_table(const efi_guid_t *guid, void *table ...@@ -1333,6 +1333,9 @@ efi_status_t efi_install_configuration_table(const efi_guid_t *guid, void *table
{ {
int i; int i;
if (!guid)
return EFI_INVALID_PARAMETER;
/* Check for guid override */ /* Check for guid override */
for (i = 0; i < systab.nr_tables; i++) { for (i = 0; i < systab.nr_tables; i++) {
if (!guidcmp(guid, &efi_conf_table[i].guid)) { if (!guidcmp(guid, &efi_conf_table[i].guid)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment