From 28620e603d6179d7fdb95175279468e652c3be71 Mon Sep 17 00:00:00 2001 From: Hao Wu Date: Tue, 8 Mar 2016 09:35:14 +0800 Subject: 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 Reviewed-by: Feng Tian --- MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskProtocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- cgit v1.2.3