mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[NPFS]
- Check if MmGetSystemAddressForMdlSafe failed svn path=/trunk/; revision=47512
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user