mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[NPFS]
- Check if MmGetSystemAddressForMdlSafe failed svn path=/trunk/; revision=47512
This commit is contained in:
parent
9598f59dec
commit
e2be367887
1 changed files with 10 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue