From: oliviermartin Date: Thu, 31 Mar 2011 11:11:59 +0000 (+0000) Subject: EmbeddedPkg/MmcDxe: Fix protocols uninstallation in Stop() function X-Git-Tag: edk2-stable201903~15015 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=6102636abc86d76eff84a933748f4f5a544f5744 EmbeddedPkg/MmcDxe: Fix protocols uninstallation in Stop() function The EFI handle argument passed to disconnect the protocol was not correct. A pointer to this handle was passed as argument instead to be only the handle itself. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11464 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/ArmPkg/Universal/MmcDxe/Mmc.c b/ArmPkg/Universal/MmcDxe/Mmc.c index 90d1172ffa..9c67867aa3 100644 --- a/ArmPkg/Universal/MmcDxe/Mmc.c +++ b/ArmPkg/Universal/MmcDxe/Mmc.c @@ -155,9 +155,9 @@ EFI_STATUS DestroyMmcHostInstance( // Uninstall Protocol Interfaces Status = gBS->UninstallMultipleProtocolInterfaces( - &MmcHostInstance->MmcHandle, + MmcHostInstance->MmcHandle, &gEfiBlockIoProtocolGuid,&(MmcHostInstance->BlockIo), - &gEfiDevicePathProtocolGuid,&(MmcHostInstance->DevicePath), + &gEfiDevicePathProtocolGuid,MmcHostInstance->DevicePath, NULL ); ASSERT_EFI_ERROR (Status);