mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-03 20:04:23 +02:00
when remaining device path is not NULL, check if it's the device managed by bus driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9904 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
f9f937d243
commit
d10a41e634
@ -429,11 +429,14 @@ SCSIBusDriverBindingStart (
|
|||||||
// only scan the specified device by RemainingDevicePath
|
// only scan the specified device by RemainingDevicePath
|
||||||
//
|
//
|
||||||
if (ScsiBusDev->ExtScsiSupport) {
|
if (ScsiBusDev->ExtScsiSupport) {
|
||||||
ScsiBusDev->ExtScsiInterface->GetTargetLun (ScsiBusDev->ExtScsiInterface, RemainingDevicePath, &TargetId, &Lun);
|
Status = ScsiBusDev->ExtScsiInterface->GetTargetLun (ScsiBusDev->ExtScsiInterface, RemainingDevicePath, &TargetId, &Lun);
|
||||||
} else {
|
} else {
|
||||||
ScsiBusDev->ScsiInterface->GetTargetLun (ScsiBusDev->ScsiInterface, RemainingDevicePath, &ScsiTargetId.ScsiId.Scsi, &Lun);
|
Status = ScsiBusDev->ScsiInterface->GetTargetLun (ScsiBusDev->ScsiInterface, RemainingDevicePath, &ScsiTargetId.ScsiId.Scsi, &Lun);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (EFI_ERROR (Status)) {
|
||||||
|
return Status;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
//
|
//
|
||||||
// If RemainingDevicePath is the End of Device Path Node,
|
// If RemainingDevicePath is the End of Device Path Node,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user