diff options
author | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-22 02:01:41 +0000 |
---|---|---|
committer | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-22 02:01:41 +0000 |
commit | c8148ea20dae60d91a6baf3ec5945750b2802bbd (patch) | |
tree | e32f3827462a195b2ef828b0046ee5b41ea4e134 /MdeModulePkg/Universal/Disk | |
parent | 58e4d800962d8b84ad122eceae8df2f6616f34fd (diff) | |
download | edk2-platforms-c8148ea20dae60d91a6baf3ec5945750b2802bbd.tar.xz |
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
Diffstat (limited to 'MdeModulePkg/Universal/Disk')
-rw-r--r-- | MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c b/MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c index 41001fa2b2..01a3a8ddf1 100644 --- a/MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c +++ b/MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c @@ -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++;
|