diff options
author | Hao Wu <hao.a.wu@intel.com> | 2016-03-08 09:35:14 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-03-23 13:38:10 +0800 |
commit | 28620e603d6179d7fdb95175279468e652c3be71 (patch) | |
tree | 9db946de96c23007b30307707ca304119cb8a29f | |
parent | 21a976e4c006cca56bf84d0106eb8aac49b3c5a2 (diff) | |
download | edk2-28620e603d6179d7fdb95175279468e652c3be71.tar.gz edk2-28620e603d6179d7fdb95175279468e652c3be71.tar.bz2 edk2-28620e603d6179d7fdb95175279468e652c3be71.zip |
MdeModulePkg RamDiskDxe: Uninstall DEVICE_PATH_PROTOCOL with correct param
Previously, the code uninstalls the DEVICE_PATH_PROTOCOL with the device
path given by caller of the 'RamDiskUnregister' function. The given device
path might be different from the one used to install the
DEVICE_PATH_PROTOCOL.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
-rw-r--r-- | MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskProtocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskProtocol.c b/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskProtocol.c index b53709b493..6d97994b5c 100644 --- a/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskProtocol.c +++ b/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskProtocol.c @@ -324,7 +324,7 @@ RamDiskUnregister ( &gEfiBlockIo2ProtocolGuid,
&PrivateData->BlockIo2,
&gEfiDevicePathProtocolGuid,
- DevicePath,
+ (EFI_DEVICE_PATH_PROTOCOL *) PrivateData->DevicePath,
NULL
);
|