Re: MiniportReturnPacket() not getting called in NT D- eserialized miniport Driver

>> The missing part is that in a deserialized driver,

> MiniportReturnPacket() can be called even before
> NdisMIndicateReceivePacket() returns! That is, the packet passed up
> might have been returned to the Miniport before it has a chance to
> inspect the ‘Status’ member of any packet. The packet’s memory might
> even have been freed already - boom!

You can set the packet’s status to NDIS_STATUS_RESOURCES before indicating
the
packet to prevent this from >>occurring (this is documented in the XP
DDK).

There is however the cost of an additional buffer copy in doing this. This
is not actually an argument against using NDIS_STATUS_RESOURCES, as there
are other really good reasons for always doing this, but you should be
aware of the not-inconsiderable cost.


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