https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b0d1522886465977dd667c8daaf15f2f220be524

commit b0d1522886465977dd667c8daaf15f2f220be524
Author:     Pierre Schweitzer <[email protected]>
AuthorDate: Sat Sep 1 12:18:51 2018 +0200
Commit:     Pierre Schweitzer <[email protected]>
CommitDate: Sat Sep 1 12:41:01 2018 +0200

    [KMTESTS:CC] Add missing FsRtlEnter/ExitFileSystem() calls
    
    Spotted by Thomas
---
 modules/rostests/kmtests/ntos_cc/CcMapData_drv.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/modules/rostests/kmtests/ntos_cc/CcMapData_drv.c 
b/modules/rostests/kmtests/ntos_cc/CcMapData_drv.c
index c7ed089ed5..6624b10e70 100644
--- a/modules/rostests/kmtests/ntos_cc/CcMapData_drv.c
+++ b/modules/rostests/kmtests/ntos_cc/CcMapData_drv.c
@@ -331,6 +331,8 @@ TestMessageHandler(
 {
     NTSTATUS Status = STATUS_SUCCESS;
 
+    FsRtlEnterFileSystem();
+
     switch (ControlCode)
     {
         case IOCTL_START_TEST:
@@ -348,6 +350,8 @@ TestMessageHandler(
             break;
     }
 
+    FsRtlExitFileSystem();
+
     return Status;
 }
 
@@ -365,6 +369,8 @@ TestIrpHandler(
     DPRINT("IRP %x/%x\n", IoStack->MajorFunction, IoStack->MinorFunction);
     ASSERT(IoStack->MajorFunction == IRP_MJ_READ);
 
+    FsRtlEnterFileSystem();
+
     Status = STATUS_NOT_SUPPORTED;
     Irp->IoStatus.Information = 0;
 
@@ -420,5 +426,7 @@ TestIrpHandler(
         IoCompleteRequest(Irp, IO_NO_INCREMENT);
     }
 
+    FsRtlExitFileSystem();
+
     return Status;
 }

Reply via email to