diff options
author | Alin Gabriel Serdean <aserdean@ovn.org> | 2018-02-08 19:30:41 +0200 |
---|---|---|
committer | Alin Gabriel Serdean <aserdean@ovn.org> | 2018-03-06 20:10:14 +0200 |
commit | 951cbaf7d5b39647cec32a1aa3d5c3b038e9e490 (patch) | |
tree | 29e06af5bd69c7d472c8dcc9e710ca8d5528d84d /datapath-windows | |
parent | c1e01fd1744d0948a01088a36e9f98c9b46b0d1e (diff) | |
download | openvswitch-951cbaf7d5b39647cec32a1aa3d5c3b038e9e490.tar.gz |
datapath-windows: Fix static analysis in Stt.c
The WDK 10 static analysis complains:
stt.c(427): warning C30030: Warning: Allocating executable memory via
specifying a MM_PAGE_PRIORITY type without a bitwise OR with
MdlMappingNoExecute.
Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org>
Acked-by: Sairam Venugopal <vsairam@vmware.com>
Diffstat (limited to 'datapath-windows')
-rw-r--r-- | datapath-windows/ovsext/Stt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/datapath-windows/ovsext/Stt.c b/datapath-windows/ovsext/Stt.c index e3c4b4686..0220a6e80 100644 --- a/datapath-windows/ovsext/Stt.c +++ b/datapath-windows/ovsext/Stt.c @@ -424,8 +424,8 @@ OvsValidateTCPChecksum(PNET_BUFFER_LIST curNbl, NDIS_STATUS status; curMdl = NET_BUFFER_CURRENT_MDL(curNb); - buf = (PUINT8)MmGetSystemAddressForMdlSafe(curMdl, LowPagePriority) - + NET_BUFFER_CURRENT_MDL_OFFSET(curNb); + buf = (PUINT8)OvsGetMdlWithLowPriority(curMdl) + + NET_BUFFER_CURRENT_MDL_OFFSET(curNb); if (!buf) { status = NDIS_STATUS_INVALID_PACKET; return status; |