mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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 */
|
/* Scan all logical units */
|
||||||
for (UINT8 lun = 0; lun < PortExtension->MaxLunCount; lun++)
|
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
|
// try to find an existing device
|
||||||
PSCSI_PORT_LUN_EXTENSION lunExt = GetLunByPath(PortExtension,
|
lunExt = GetLunByPath(PortExtension,
|
||||||
pathId,
|
pathId,
|
||||||
targetId,
|
targetId,
|
||||||
lun);
|
lun);
|
||||||
|
|
||||||
if (lunExt)
|
if (lunExt)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue