Index: MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c =================================================================== --- MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c (revision 9330) +++ MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c (working copy) @@ -310,8 +310,15 @@ This->DriverBindingHandle, ControllerHandle ); + return Status; } + gBS->CloseProtocol ( + ControllerHandle, + &gEfiDiskIoProtocolGuid, + This->DriverBindingHandle, + ControllerHandle + ); return Status; }