From: lgao4 Date: Wed, 8 Jul 2009 02:31:10 +0000 (+0000) Subject: Add check that Progress is NULL X-Git-Tag: edk2-stable201903~17519 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=f5e9ff82b0617a91114a6a04a88cc32db47d87be;hp=7a45e5aa6917d5d4e07522aa5284a41e94ffa968 Add check that Progress is NULL git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8789 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c index 38d36f8a28..02264c7f8c 100644 --- a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c +++ b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c @@ -452,19 +452,19 @@ RouteConfig ( DRIVER_SAMPLE_PRIVATE_DATA *PrivateData; EFI_HII_CONFIG_ROUTING_PROTOCOL *HiiConfigRouting; - if (Configuration == NULL) { + if (Configuration == NULL || Progress == NULL) { return EFI_INVALID_PARAMETER; } PrivateData = DRIVER_SAMPLE_PRIVATE_FROM_THIS (This); HiiConfigRouting = PrivateData->HiiConfigRouting; + *Progress = Configuration; // // Check routing data in . // Note: if only one Storage is used, then this checking could be skipped. // if (!HiiIsConfigHdrMatch (Configuration, &mFormSetGuid, VariableName)) { - *Progress = Configuration; return EFI_NOT_FOUND; }