mirror of
https://github.com/reactos/reactos.git
synced 2024-09-09 12:20:21 +00:00
[NPFS]
- Check if MmGetSystemAddressForMdlSafe failed svn path=/trunk/; revision=47512
This commit is contained in:
parent
9598f59dec
commit
e2be367887
|
@ -781,7 +781,16 @@ NpfsWrite(PDEVICE_OBJECT DeviceObject,
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = STATUS_SUCCESS;
|
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);
|
ExAcquireFastMutex(&ReaderCcb->DataListLock);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue