summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandy Stutsman <sstutsma@redhat.com>2015-10-21 11:54:37 -0400
committerSandy Stutsman <sstutsma@redhat.com>2015-10-21 11:54:37 -0400
commit0586a23aec061d101dc5342b78ba75926d39bff3 (patch)
treefc6185f89dd14a37a3f0773dc847bd9a316c52e5
parentf326f83fc3205dc84769ad55ec9c469d02129e53 (diff)
Fix Code Integrity error generated by the Drive Verifier
Add MdlMappingNoExecute to MmGetSystemAddressForMDLSafe call in ExecutePresentDisplayOnly.
-rwxr-xr-xqxldod/QxlDod.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
index 77f4f86..1225f04 100755
--- a/qxldod/QxlDod.cpp
+++ b/qxldod/QxlDod.cpp
@@ -2720,7 +2720,7 @@ VgaDevice::ExecutePresentDisplayOnly(
// Note: double mapping the buffer this way causes lot of system
// overhead for large size buffers.
ctx->SrcAddr = reinterpret_cast<BYTE*>
- (MmGetSystemAddressForMdlSafe(mdl, NormalPagePriority ));
+ (MmGetSystemAddressForMdlSafe(mdl, NormalPagePriority | MdlMappingNoExecute));
if(!ctx->SrcAddr) {
Status = STATUS_INSUFFICIENT_RESOURCES;
@@ -3619,7 +3619,7 @@ QxlDevice::ExecutePresentDisplayOnly(
// Note: double mapping the buffer this way causes lot of system
// overhead for large size buffers.
ctx->SrcAddr = reinterpret_cast<BYTE*>
- (MmGetSystemAddressForMdlSafe(mdl, NormalPagePriority ));
+ (MmGetSystemAddressForMdlSafe(mdl, NormalPagePriority | MdlMappingNoExecute));
if(!ctx->SrcAddr) {
Status = STATUS_INSUFFICIENT_RESOURCES;