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:
@@ -1024,7 +1024,7 @@ ScsiScanCreateDevice (
|
||||
);
|
||||
}
|
||||
|
||||
if (Status == EFI_OUT_OF_RESOURCES) {
|
||||
if (EFI_ERROR(Status)) {
|
||||
FreePool (ScsiIoDevice);
|
||||
return Status;
|
||||
}
|
||||
|
Reference in New Issue
Block a user