diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-05-20 12:05:45 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-05-20 12:05:45 +0000 |
commit | ae79d2f9ec344703f379a557b873efc9bf70cd1e (patch) | |
tree | 518517be0a885f65f48585668d4419748a1ac4ad /MdeModulePkg/Universal/DriverSampleDxe | |
parent | f4efc39f3433222df6118484e735e7b9c2f487fc (diff) | |
download | edk2-platforms-ae79d2f9ec344703f379a557b873efc9bf70cd1e.tar.xz |
Update HiiDataBase to fix the SCT hang issues by the invalid device path.
Update the driver config access protocol extractconfig and routeconfig interface to check the input parameters.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8349 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/DriverSampleDxe')
-rw-r--r-- | MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c index 784cd28d7a..f856083de4 100644 --- a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c +++ b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c @@ -345,7 +345,10 @@ ExtractConfig ( EFI_STRING ConfigRequestHdr;
EFI_STRING ConfigRequest;
UINTN Size;
-
+
+ if (Progress == NULL || Results == NULL) {
+ return EFI_INVALID_PARAMETER;
+ }
//
// Initialize the local variables.
//
@@ -833,7 +836,6 @@ DriverSampleInit ( // Initialize the local variables.
//
ConfigRequestHdr = NULL;
-
//
// Initialize screen dimensions for SendForm().
// Remove 3 characters from top and bottom
|