summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus
diff options
context:
space:
mode:
authorerictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2011-06-20 09:35:53 +0000
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2011-06-20 09:35:53 +0000
commite7c2a83b3b5d40a7be33267799cc22fe867745cf (patch)
tree18e58b3cfea37e401a92d36feecf4839372a7244 /MdeModulePkg/Bus
parenteaaf8693dcbed898c31fe98d7f4d47e6fd36075d (diff)
downloadedk2-e7c2a83b3b5d40a7be33267799cc22fe867745cf.zip
edk2-e7c2a83b3b5d40a7be33267799cc22fe867745cf.tar.gz
edk2-e7c2a83b3b5d40a7be33267799cc22fe867745cf.tar.bz2
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
Diffstat (limited to 'MdeModulePkg/Bus')
-rw-r--r--MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c b/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c
index bfb36df..83c2ca3 100644
--- a/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c
+++ b/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c
@@ -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)) {