summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorgikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-26 06:29:00 +0000
committergikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-26 06:29:00 +0000
commitef13cf23eef8720f5dbcde02ff69057335662969 (patch)
tree399ab0d40f8a85cb387c914fff66e50d50251636 /MdeModulePkg
parenta244f400e56b6ac349ebff8947c9e2bc952a7f1b (diff)
downloadedk2-platforms-ef13cf23eef8720f5dbcde02ff69057335662969.tar.xz
Enhance error handle of BuildDevicePath for it is possible to receive other errors.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8667 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c b/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c
index 2a765460b2..2325b645ed 100644
--- a/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c
+++ b/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c
@@ -1024,7 +1024,7 @@ ScsiScanCreateDevice (
);
}
- if (Status == EFI_OUT_OF_RESOURCES) {
+ if (EFI_ERROR(Status)) {
FreePool (ScsiIoDevice);
return Status;
}