Crash in SpinLock?

I’m running my NDIS driver on debug build of XP and it the Verifier
bugchecks at my IRP cancel routine when I call KeAcquireSpinLock. If I
comment the Acquire/Release calls then it works fine. Any clue???
This is what I do in my cancel routine…

ioctlIrp is global struct;

{
KIRQL oldIrql;
KIRQL cancelIrql = Irp->CancelIrql;
//
// release the cancel spinlock now
//

IoReleaseCancelSpinLock(cancelIrql);

KeAcquireSpinLock(&ioctlIrp.irpLock,&oldIrql);

}

Thanks
Daniel


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> I’m running my NDIS driver on debug build of XP and it the Verifier

bugchecks at my IRP cancel routine when I call KeAcquireSpinLock. If I
comment the Acquire/Release calls then it works fine. Any clue???

I guess it would depend on what the crash is that you’re seeing. Did you
look up the bugcheck code in the DDK Docs?

Peter
OSR


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Take in account that when you acquire a spinlock IRQL is set
to DISPATCH_LEVEL. Maybe that is the problem!

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Peter Viscarola
Sent: Thursday, May 31, 2001 10:44 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Crash in SpinLock?

I’m running my NDIS driver on debug build of XP and it the Verifier
bugchecks at my IRP cancel routine when I call KeAcquireSpinLock. If I
comment the Acquire/Release calls then it works fine. Any clue???

I guess it would depend on what the crash is that you’re seeing. Did you
look up the bugcheck code in the DDK Docs?

Peter
OSR


You are currently subscribed to ntdev as: xxxxx@trymedia.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com