mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[NDIS]
- Dequeue the timer earlier so the timer queue will be in a valid state if any timers are modified during the miniport's timer callback svn path=/trunk/; revision=47825
This commit is contained in:
@@ -170,11 +170,6 @@ MiniTimerDpcFunction(PKDPC Dpc,
|
||||
{
|
||||
PNDIS_MINIPORT_TIMER Timer = DeferredContext;
|
||||
|
||||
Timer->MiniportTimerFunction(Dpc,
|
||||
Timer->MiniportTimerContext,
|
||||
SystemArgument1,
|
||||
SystemArgument2);
|
||||
|
||||
/* Only dequeue if the timer has a period of 0 */
|
||||
if (!Timer->Timer.Period)
|
||||
{
|
||||
@@ -183,6 +178,11 @@ MiniTimerDpcFunction(PKDPC Dpc,
|
||||
if (!DequeueMiniportTimer(Timer)) ASSERT(FALSE);
|
||||
KeReleaseSpinLockFromDpcLevel(&Timer->Miniport->Lock);
|
||||
}
|
||||
|
||||
Timer->MiniportTimerFunction(Dpc,
|
||||
Timer->MiniportTimerContext,
|
||||
SystemArgument1,
|
||||
SystemArgument2);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user