diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-12-09 12:20:36 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-12-09 12:20:36 +0000 |
commit | 9ac0640d9cf1590f4209ead0b0fbe159fdebc307 (patch) | |
tree | 2ab2e10aa8999cd117644996b143a3e725bd8c23 /MdeModulePkg | |
parent | 0b29a17e26cdc05b0e78fd2fe3735607e2fbbacb (diff) | |
download | edk2-platforms-9ac0640d9cf1590f4209ead0b0fbe159fdebc307.tar.xz |
EFI_INVALID_PARAMETER should return when the input Block is NULL for ConfigRouting.ConfigToBlock().
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11145 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c b/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c index 4f83fe3866..7ab6a6e5f0 100644 --- a/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c +++ b/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c @@ -3406,13 +3406,16 @@ HiiConfigToBlock ( if (MaxBlockSize > BufferSize) {
*BlockSize = MaxBlockSize;
- if (Block == NULL) {
- return EFI_INVALID_PARAMETER;
- } else {
+ if (Block != NULL) {
return EFI_DEVICE_ERROR;
}
}
+ if (Block == NULL) {
+ *Progress = ConfigResp;
+ return EFI_INVALID_PARAMETER;
+ }
+
return EFI_SUCCESS;
Exit:
|