mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[SCSIPORT] Ignore LUNs not supported by the adapter
CORE-17641
This commit is contained in:
parent
a36cc8054d
commit
ac5536aa48
1 changed files with 10 additions and 4 deletions
|
@ -251,11 +251,17 @@ FdoScanAdapter(
|
|||
/* Scan all logical units */
|
||||
for (UINT8 lun = 0; lun < PortExtension->MaxLunCount; lun++)
|
||||
{
|
||||
PSCSI_PORT_LUN_EXTENSION lunExt;
|
||||
|
||||
/* Skip invalid lun values */
|
||||
if (lun >= PortExtension->PortConfig->MaximumNumberOfLogicalUnits)
|
||||
continue;
|
||||
|
||||
// try to find an existing device
|
||||
PSCSI_PORT_LUN_EXTENSION lunExt = GetLunByPath(PortExtension,
|
||||
pathId,
|
||||
targetId,
|
||||
lun);
|
||||
lunExt = GetLunByPath(PortExtension,
|
||||
pathId,
|
||||
targetId,
|
||||
lun);
|
||||
|
||||
if (lunExt)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue