]> git.proxmox.com Git - mirror_edk2.git/commitdiff
EmbeddedPkg/MmcDxe: Fix protocols uninstallation in Stop() function
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 31 Mar 2011 11:11:59 +0000 (11:11 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 31 Mar 2011 11:11:59 +0000 (11:11 +0000)
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

ArmPkg/Universal/MmcDxe/Mmc.c

index 90d1172ffa020f5c7ad44985b8ee5ff0db71034b..9c67867aa309686cd1f892e4c63d432ad7b3fb82 100644 (file)
@@ -155,9 +155,9 @@ EFI_STATUS DestroyMmcHostInstance(
 \r
     // Uninstall Protocol Interfaces\r
     Status = gBS->UninstallMultipleProtocolInterfaces(\r
-            &MmcHostInstance->MmcHandle,\r
+        MmcHostInstance->MmcHandle,\r
             &gEfiBlockIoProtocolGuid,&(MmcHostInstance->BlockIo),\r
-            &gEfiDevicePathProtocolGuid,&(MmcHostInstance->DevicePath),\r
+        &gEfiDevicePathProtocolGuid,MmcHostInstance->DevicePath,\r
             NULL\r
             );\r
     ASSERT_EFI_ERROR (Status);\r