Hello,
I have a BSOD on some computers occuring in afd!AfdBReceiveEventHandler which seems to be the upper driver’s ClientEventReceive handler. This bug occurs rarely and I suspect there is something wrong with my TDI_SET_EVENT_HANDLER processing.
So, my question is – before you get IRP_MJ_CLEANUP on a file object, does the upper client cleans all handlers passed via TDI_SET_EVENT_HANDLER, by calling you via TDI_SET_EVENT_HANDLER with NULL parameters, for the SAME file object?