diff options
author | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-08-18 09:20:17 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-08-18 09:20:17 +0000 |
commit | ddff87b79e5811b7f3d79990b1580d27b310e4ae (patch) | |
tree | 8ba80c22a5dc09289e7f0345c9d96d91e4165aae | |
parent | ee6cf42c53974e2e92b9383ea7a64f231f528fe0 (diff) | |
download | edk2-ddff87b79e5811b7f3d79990b1580d27b310e4ae.zip edk2-ddff87b79e5811b7f3d79990b1580d27b310e4ae.tar.gz edk2-ddff87b79e5811b7f3d79990b1580d27b310e4ae.tar.bz2 |
Omap35xxPkg/MMCHSDxe: Fixed initialization when started from gBS->ConnectController()
As soon as the MMCHSDxe is initialized is reinstalled its protocol.
It was crashing when the PartitionDxe was scanning for partition headers and the the MMC driver
reinstalls its protocols in the same time. The initial DiskIo and BlockIo instances used
by PartitionDxe were not valid after this reinstallation.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12160 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | Omap35xxPkg/MMCHSDxe/MMCHS.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Omap35xxPkg/MMCHSDxe/MMCHS.c b/Omap35xxPkg/MMCHSDxe/MMCHS.c index 9ddb48a..786bc88 100644 --- a/Omap35xxPkg/MMCHSDxe/MMCHS.c +++ b/Omap35xxPkg/MMCHSDxe/MMCHS.c @@ -1152,17 +1152,12 @@ SdReadWrite ( if (Update) { DEBUG ((EFI_D_INFO, "SD Card ReinstallProtocolInterface ()\n")); gBS->ReinstallProtocolInterface ( - gImageHandle, - &gEfiBlockIoProtocolGuid, - &gBlockIo, - &gBlockIo - ); - + return EFI_MEDIA_CHANGED; } if (EFI_ERROR (Status)) { |