mirror of https://github.com/acidanthera/audk.git
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:
parent
a244f400e5
commit
ef13cf23ee
|
@ -1024,7 +1024,7 @@ ScsiScanCreateDevice (
|
|||
);
|
||||
}
|
||||
|
||||
if (Status == EFI_OUT_OF_RESOURCES) {
|
||||
if (EFI_ERROR(Status)) {
|
||||
FreePool (ScsiIoDevice);
|
||||
return Status;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue