mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 22:51:37 +00:00
efi_loader: check parameter in InstallConfigurationTable
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>
This commit is contained in:
parent
0fb4169e28
commit
eb68b4ef31
1 changed files with 3 additions and 0 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue