From e7c2a83b3b5d40a7be33267799cc22fe867745cf Mon Sep 17 00:00:00 2001 From: erictian Date: Mon, 20 Jun 2011 09:35:53 +0000 Subject: [PATCH] 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 --- MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c b/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c index bfb36df828..83c2ca3afe 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)) {