Author: tfaber
Date: Sat Jun 13 12:30:33 2015
New Revision: 68121
URL:
http://svn.reactos.org/svn/reactos?rev=68121&view=rev
Log:
[AFD]
- Probe for read access only in TdiSend/TdiSendDatagram
CORE-9807 resolve
Modified:
trunk/reactos/drivers/network/afd/afd/tdi.c
Modified: trunk/reactos/drivers/network/afd/afd/tdi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/afd/afd/td…
==============================================================================
--- trunk/reactos/drivers/network/afd/afd/tdi.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/afd/afd/tdi.c [iso-8859-1] Sat Jun 13 12:30:33 2015
@@ -935,7 +935,7 @@
}
_SEH2_TRY {
- MmProbeAndLockPages(Mdl, (*Irp)->RequestorMode, IoModifyAccess);
+ MmProbeAndLockPages(Mdl, (*Irp)->RequestorMode, IoReadAccess);
} _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) {
AFD_DbgPrint(MIN_TRACE, ("MmProbeAndLockPages() failed.\n"));
IoFreeMdl(Mdl);
@@ -1202,7 +1202,7 @@
}
_SEH2_TRY {
- MmProbeAndLockPages(Mdl, (*Irp)->RequestorMode, IoModifyAccess);
+ MmProbeAndLockPages(Mdl, (*Irp)->RequestorMode, IoReadAccess);
} _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) {
AFD_DbgPrint(MIN_TRACE, ("MmProbeAndLockPages() failed.\n"));
IoFreeMdl(Mdl);