[NDIS] Allow timer initialization at DISPATCH_LEVEL.

Spotted by Mortal Wombat.
This commit is contained in:
Thomas Faber 2021-10-09 13:47:26 -04:00
parent 8ebe441d1a
commit 4eb45209ea
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -80,10 +80,10 @@ NdisInitializeTimer(
* FunctionContext: context (param 2) to be passed to the timer function when it runs * FunctionContext: context (param 2) to be passed to the timer function when it runs
* NOTES: * NOTES:
* - TimerFunction will be called at DISPATCH_LEVEL * - TimerFunction will be called at DISPATCH_LEVEL
* - call at IRQL = PASSIVE_LEVEL * - Must be called at IRQL <= DISPATCH_LEVEL
*/ */
{ {
PAGED_CODE(); ASSERT_IRQL(DISPATCH_LEVEL);
ASSERT(Timer); ASSERT(Timer);
KeInitializeTimer (&Timer->Timer); KeInitializeTimer (&Timer->Timer);
@ -203,10 +203,10 @@ NdisMInitializeTimer(
* FunctionContext: argument passed to TimerFunction when it is called * FunctionContext: argument passed to TimerFunction when it is called
* NOTES: * NOTES:
* - TimerFunction is called at IRQL = DISPATCH_LEVEL * - TimerFunction is called at IRQL = DISPATCH_LEVEL
* - call at IRQL = PASSIVE_LEVEL * - Must be called at IRQL <= DISPATCH_LEVEL
*/ */
{ {
PAGED_CODE(); ASSERT_IRQL(DISPATCH_LEVEL);
ASSERT(Timer); ASSERT(Timer);
KeInitializeTimer (&Timer->Timer); KeInitializeTimer (&Timer->Timer);