Is the running IRQL of NDIS MChars.SendNetBufferListsHandler greater than DISPATCH_LEVEL? I call NdisAllocateMdl in SendNetBufferListsHandler ,but it caused an error: DRIVER_IRQL_NOT_LESS_OR_EQUAL
DRIVER_IRQL_NOT_LESS_OR_EQUAL also happens when you access unallocated or paged out memory on IRQ>APC_LEVEL.
Why do you need to call NdisAllocateMdl? This bugcheck means that you supply wrong arguments to it.
Because I want to modify NBL and redirect it, like this
NdisAllocateMemoryWithTag(&Buffer, BufferSize, TAG);
pMDL = NdisAllocateMdl(pAdapt->BindingHandle, Buffer, BufferSize);
Most likely pAdapt->BindingHandle is invalid.