if Usb mass storage interface returns EFI_DEVICE_ERROR, we should jump out the loop which is used to determine if the current block device supports GPT/Torito/MBR in Partition driver. This way can avoid Partition.start is interrupted by itself Partition.stop().

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8977 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
eric_tian 2009-07-22 02:01:41 +00:00
parent 58e4d80096
commit c8148ea20d
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ PartitionDriverBindingStart (
BlockIo,
ParentDevicePath
);
if (!EFI_ERROR (Status) || Status == EFI_MEDIA_CHANGED) {
if (!EFI_ERROR (Status) || Status == EFI_MEDIA_CHANGED || Status == EFI_DEVICE_ERROR) {
break;
}
Routine++;