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:
erictian 2011-06-20 09:35:53 +00:00
parent eaaf8693dc
commit e7c2a83b3b
1 changed files with 6 additions and 6 deletions

View File

@ -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)) {