- Check if MmGetSystemAddressForMdlSafe failed

svn path=/trunk/; revision=47512
This commit is contained in:
Johannes Anderwald 2010-06-01 09:52:16 +00:00
parent 9598f59dec
commit e2be367887

View file

@ -781,7 +781,16 @@ NpfsWrite(PDEVICE_OBJECT DeviceObject,
}
Status = STATUS_SUCCESS;
Buffer = MmGetSystemAddressForMdl (Irp->MdlAddress);
Buffer = MmGetSystemAddressForMdlSafe (Irp->MdlAddress, NormalPagePriority);
if (!Buffer)
{
DPRINT("MmGetSystemAddressForMdlSafe failed\n");
Status = STATUS_INSUFFICIENT_RESOURCES;
Length = 0;
goto done;
}
ExAcquireFastMutex(&ReaderCcb->DataListLock);