mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
21a976e4c0
commit
28620e603d
|
@ -324,7 +324,7 @@ RamDiskUnregister (
|
|||
&gEfiBlockIo2ProtocolGuid,
|
||||
&PrivateData->BlockIo2,
|
||||
&gEfiDevicePathProtocolGuid,
|
||||
DevicePath,
|
||||
(EFI_DEVICE_PATH_PROTOCOL *) PrivateData->DevicePath,
|
||||
NULL
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue