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,7 +1046,7 @@ ScsiScanCreateDevice (
&ScsiDevicePath &ScsiDevicePath
); );
} else { } else {
Status = ScsiIoDevice->ScsiPassThru->BuildDevicePath ( Status = ScsiBusDev->ScsiInterface->BuildDevicePath (
ScsiBusDev->ScsiInterface, ScsiBusDev->ScsiInterface,
TargetId->ScsiId.Scsi, TargetId->ScsiId.Scsi,
Lun, Lun,