From ef13cf23eef8720f5dbcde02ff69057335662969 Mon Sep 17 00:00:00 2001 From: gikidy Date: Fri, 26 Jun 2009 06:29:00 +0000 Subject: 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 --- MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MdeModulePkg') 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; } -- cgit v1.2.3