Author: cgutman
Date: Tue Jan 3 19:22:30 2012
New Revision: 54822
URL:
http://svn.reactos.org/svn/reactos?rev=54822&view=rev
Log:
[NDISUIO]
- Fix missing spin lock release
- Return the correct status for an invalid index
Modified:
branches/wlan-bringup/drivers/network/ndisuio/ioctl.c
Modified: branches/wlan-bringup/drivers/network/ndisuio/ioctl.c
URL:
http://svn.reactos.org/svn/reactos/branches/wlan-bringup/drivers/network/nd…
==============================================================================
--- branches/wlan-bringup/drivers/network/ndisuio/ioctl.c [iso-8859-1] (original)
+++ branches/wlan-bringup/drivers/network/ndisuio/ioctl.c [iso-8859-1] Tue Jan 3 19:22:30
2012
@@ -52,6 +52,7 @@
i++;
CurrentEntry = CurrentEntry->Flink;
}
+ KeReleaseSpinLock(&GlobalAdapterListLock, OldIrql);
if (i == QueryBinding->BindingIndex)
{
AdapterContext = CONTAINING_RECORD(CurrentEntry, NDISUIO_ADAPTER_CONTEXT,
ListEntry);
@@ -78,7 +79,7 @@
else
{
/* Invalid index */
- Status = STATUS_INVALID_PARAMETER;
+ Status = STATUS_NO_MORE_ENTRIES;
}
}
else