datapath-windows: Use non-executable memory when allocating memory
Use non-executable memory when using ExAllocatePoolWithTagPriority.
Found using WDK 10 static code analysis.
Acked-by: Shashank Ram
@@ -60,7 +60,7 @@ OvsAllocateAlignedMemory(size_t size, UINT16 align)
* XXX: NdisAllocateMemory*() functions don't talk anything about
* alignment. Hence using ExAllocatePool*();
*/
- return (VOID *)ExAllocatePoolWithTagPriority(NonPagedPool, size,
+ return (VOID *)ExAllocatePoolWithTagPriority(NonPagedPoolNx, size,
OVS_MEMORY_TAG,
NormalPoolPriority);
}
