summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Disk
diff options
context:
space:
mode:
authorThomas Palmer <thomas.palmer@hpe.com>2018-04-19 04:32:26 +0800
committerEric Dong <eric.dong@intel.com>2018-05-03 10:49:44 +0800
commit124b18cfb3ff20d7a51ca87143605da9c54b86c9 (patch)
treef6832d2129b882c74e305e2de113d0aa0e37c63b /MdeModulePkg/Universal/Disk
parente00cd9559095b3146c8349210137fd9fb6dc0edc (diff)
downloadedk2-124b18cfb3ff20d7a51ca87143605da9c54b86c9.zip
edk2-124b18cfb3ff20d7a51ca87143605da9c54b86c9.tar.gz
edk2-124b18cfb3ff20d7a51ca87143605da9c54b86c9.tar.bz2
MdeModulePkg/RamDiskDxe: Update RouteConfig function
According to UEFI spec, the RouteConfig protocol function should populate the Progress pointer with an address inside Configuration. This patch ensures that these functions are compliant when EFI_NOT_FOUND is returned. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Thomas Palmer <thomas.palmer@hpe.com> Reviewed-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com>
Diffstat (limited to 'MdeModulePkg/Universal/Disk')
-rw-r--r--MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskImpl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskImpl.c b/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskImpl.c
index b562bc1..7ebd397 100644
--- a/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskImpl.c
+++ b/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskImpl.c
@@ -2,7 +2,7 @@
HII Config Access protocol implementation of RamDiskDxe driver.
Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
- (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
+ (C) Copyright 2016-2018 Hewlett Packard Enterprise Development LP<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -277,6 +277,8 @@ RamDiskRouteConfig (
return EFI_INVALID_PARAMETER;
}
+ *Progress = Configuration;
+
return EFI_NOT_FOUND;
}