NdisMSendComplete causes pagefault!

Hi,

I am writing a Deserial Ndis Nic Miniport driver with WDM Lower edge.

Whenever i indicate NdisMSendComplete a pagefault occurs.
I don’t understand the reason.
Just to make sure that i am not indicating an invalid packet pointer, I tried calling NdisMsendComplete with failure status as soon as my send thread gains control.
(ie) I am not doing any processing to the pkt.

By this experiment, the possibility that Original owner timing out & freeing the pkt is ruled out.

Any Clues What’z going wrong ?

Best Regards
Anandhi


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

> ----------

From: xxxxx@rediffmail.com[SMTP:xxxxx@rediffmail.com]
Reply To: xxxxx@lists.osr.com
Sent: Wednesday, January 23, 2002 4:06 PM
To: xxxxx@lists.osr.com
Subject: [ntdev] NdisMSendComplete causes pagefault!

Whenever i indicate NdisMSendComplete a pagefault occurs.
I don’t understand the reason.
Just to make sure that i am not indicating an invalid packet pointer, I
tried calling NdisMsendComplete with failure status as soon as my send
thread gains control.
(ie) I am not doing any processing to the pkt.

By this experiment, the possibility that Original owner timing out &
freeing the pkt is ruled out.

Any Clues What’z going wrong ?

A guess: packet was already freed by caller. Examine your MiniportSend and
MiniportSendPackets handlers and check is you hold ownership of sent packets
until completed. If you don’t, caller assumes packets were already processed
and can to anything. Packets can be freed/reused immediatelly after return
from mentioned functions. There are rules how to hold owvership; read DDK
docs.

Best regards,

Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.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