mirror of https://github.com/acidanthera/audk.git
Fix potential null pointer dereference
Signed-off-by: erictian Reviewed-by: ydong10 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11859 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
eaaf8693dc
commit
e7c2a83b3b
|
@ -1046,12 +1046,12 @@ ScsiScanCreateDevice (
|
|||
&ScsiDevicePath
|
||||
);
|
||||
} else {
|
||||
Status = ScsiIoDevice->ScsiPassThru->BuildDevicePath (
|
||||
ScsiBusDev->ScsiInterface,
|
||||
TargetId->ScsiId.Scsi,
|
||||
Lun,
|
||||
&ScsiDevicePath
|
||||
);
|
||||
Status = ScsiBusDev->ScsiInterface->BuildDevicePath (
|
||||
ScsiBusDev->ScsiInterface,
|
||||
TargetId->ScsiId.Scsi,
|
||||
Lun,
|
||||
&ScsiDevicePath
|
||||
);
|
||||
}
|
||||
|
||||
if (EFI_ERROR(Status)) {
|
||||
|
|
Loading…
Reference in New Issue