mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 04:35:07 +00:00
[NDISUIO]
- Fix missing spin lock release - Return the correct status for an invalid index svn path=/branches/wlan-bringup/; revision=54822
This commit is contained in:
parent
7360d0e1fb
commit
90d838bf1a
|
@ -52,6 +52,7 @@ QueryBinding(PIRP Irp, PIO_STACK_LOCATION IrpSp)
|
|||
i++;
|
||||
CurrentEntry = CurrentEntry->Flink;
|
||||
}
|
||||
KeReleaseSpinLock(&GlobalAdapterListLock, OldIrql);
|
||||
if (i == QueryBinding->BindingIndex)
|
||||
{
|
||||
AdapterContext = CONTAINING_RECORD(CurrentEntry, NDISUIO_ADAPTER_CONTEXT, ListEntry);
|
||||
|
@ -78,7 +79,7 @@ QueryBinding(PIRP Irp, PIO_STACK_LOCATION IrpSp)
|
|||
else
|
||||
{
|
||||
/* Invalid index */
|
||||
Status = STATUS_INVALID_PARAMETER;
|
||||
Status = STATUS_NO_MORE_ENTRIES;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue