Author: pschweitzer
Date: Mon May 25 17:43:04 2015
New Revision: 67912
URL:
http://svn.reactos.org/svn/reactos?rev=67912&view=rev
Log:
[NTFS]
Fix MmGetSystemAddressForMdlSafe() call, as it was done in r67808
Modified:
trunk/reactos/drivers/filesystems/ntfs/fsctl.c
trunk/reactos/drivers/filesystems/ntfs/misc.c
trunk/reactos/drivers/filesystems/ntfs/ntfs.h
trunk/reactos/drivers/filesystems/ntfs/rw.c
Modified: trunk/reactos/drivers/filesystems/ntfs/fsctl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/fsctl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/fsctl.c [iso-8859-1] Mon May 25 17:43:04 2015
@@ -712,7 +712,7 @@
return STATUS_BUFFER_TOO_SMALL;
}
- BitmapBuffer = NtfsGetUserBuffer(Irp);
+ BitmapBuffer = NtfsGetUserBuffer(Irp, FALSE);
if (Irp->RequestorMode == UserMode)
{
_SEH2_TRY
Modified: trunk/reactos/drivers/filesystems/ntfs/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/m…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/misc.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/misc.c [iso-8859-1] Mon May 25 17:43:04 2015
@@ -117,11 +117,12 @@
}
PVOID
-NtfsGetUserBuffer(PIRP Irp)
+NtfsGetUserBuffer(PIRP Irp,
+ BOOLEAN Paging)
{
if (Irp->MdlAddress != NULL)
{
- return MmGetSystemAddressForMdlSafe(Irp->MdlAddress, HighPagePriority);
+ return MmGetSystemAddressForMdlSafe(Irp->MdlAddress, (Paging ?
HighPagePriority : NormalPagePriority));
}
else
{
Modified: trunk/reactos/drivers/filesystems/ntfs/ntfs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/n…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/ntfs.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/ntfs.h [iso-8859-1] Mon May 25 17:43:04 2015
@@ -743,7 +743,8 @@
PIRP Irp);
PVOID
-NtfsGetUserBuffer(PIRP Irp);
+NtfsGetUserBuffer(PIRP Irp,
+ BOOLEAN Paging);
#if 0
BOOLEAN
Modified: trunk/reactos/drivers/filesystems/ntfs/rw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/r…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/rw.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/rw.c [iso-8859-1] Mon May 25 17:43:04 2015
@@ -196,7 +196,7 @@
DeviceExt = DeviceObject->DeviceExtension;
ReadLength = Stack->Parameters.Read.Length;
ReadOffset = Stack->Parameters.Read.ByteOffset;
- Buffer = NtfsGetUserBuffer(Irp);
+ Buffer = NtfsGetUserBuffer(Irp, Irp->Flags & IRP_PAGING_IO);
Status = NtfsReadFile(DeviceExt,
FileObject,