summaryrefslogtreecommitdiff
path: root/datapath-windows/ovsext/Flow.c
diff options
context:
space:
mode:
authorAlin Serdean <aserdean@cloudbasesolutions.com>2017-11-06 17:33:33 +0200
committerAlin Gabriel Serdean <aserdean@ovn.org>2017-11-29 16:51:08 +0200
commitcba5d1489bf89ff81472986b18b9b13c5b5f8748 (patch)
tree477eb1bed705fa20b7017692803515b25499f5ea /datapath-windows/ovsext/Flow.c
parentc8025aee4fa6a862d142dd8da780d45aaf0a868c (diff)
downloadopenvswitch-cba5d1489bf89ff81472986b18b9b13c5b5f8748.tar.gz
datapath-windows: Use only non executable memory
Use only non-executable memory when using MmGetSystemAddressForMdlSafe. Introduce a new function called OvsGetMdlWithLowPriority for readability. Found using WDK 10 static code analysis. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Acked-by: Shashank Ram <shashank08@gmail.com>
Diffstat (limited to 'datapath-windows/ovsext/Flow.c')
-rw-r--r--datapath-windows/ovsext/Flow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath-windows/ovsext/Flow.c b/datapath-windows/ovsext/Flow.c
index 852a22fe6..576fe4bc5 100644
--- a/datapath-windows/ovsext/Flow.c
+++ b/datapath-windows/ovsext/Flow.c
@@ -1933,7 +1933,7 @@ GetStartAddrNBL(const NET_BUFFER_LIST *_pNB)
// Ethernet Header is a guaranteed safe access.
curMdl = (NET_BUFFER_LIST_FIRST_NB(_pNB))->CurrentMdl;
- curBuffer = MmGetSystemAddressForMdlSafe(curMdl, LowPagePriority);
+ curBuffer = OvsGetMdlWithLowPriority(curMdl);
if (!curBuffer) {
return NULL;
}