startva of mdl is NULL.

Hi,all,

I’m using notepad to test my fsd,When I save dirty content, cached io is
sent to write routine, then the lazy writer is sent a noncached io to write
routine again, at this time, value of Irp->MdlAddress->StartVa and
Irp->MdlAress->ByteOffset is 0, whcih lead to a bugcheck because the
underlying driver always
call MmGetMdlVirtualAddress to access this memeory.
My question is why these two fields not been set correctly before lazy
writer call my fsd?
How to avoid this?

Thanks.

Anson.