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
This commit is contained in:
gikidy 2009-06-26 06:29:00 +00:00
parent a244f400e5
commit ef13cf23ee
1 changed files with 1 additions and 1 deletions

View File

@ -1024,7 +1024,7 @@ ScsiScanCreateDevice (
);
}
if (Status == EFI_OUT_OF_RESOURCES) {
if (EFI_ERROR(Status)) {
FreePool (ScsiIoDevice);
return Status;
}