mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
ee6cf42c53
commit
ddff87b79e
|
@ -1152,17 +1152,12 @@ SdReadWrite (
|
||||||
if (Update) {
|
if (Update) {
|
||||||
DEBUG ((EFI_D_INFO, "SD Card ReinstallProtocolInterface ()\n"));
|
DEBUG ((EFI_D_INFO, "SD Card ReinstallProtocolInterface ()\n"));
|
||||||
gBS->ReinstallProtocolInterface (
|
gBS->ReinstallProtocolInterface (
|
||||||
|
|
||||||
gImageHandle,
|
gImageHandle,
|
||||||
|
|
||||||
&gEfiBlockIoProtocolGuid,
|
&gEfiBlockIoProtocolGuid,
|
||||||
|
|
||||||
&gBlockIo,
|
&gBlockIo,
|
||||||
|
|
||||||
&gBlockIo
|
&gBlockIo
|
||||||
|
|
||||||
);
|
);
|
||||||
|
return EFI_MEDIA_CHANGED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
|
Loading…
Reference in New Issue