[KMTESTS:CC] Add missing FsRtlEnter/ExitFileSystem() calls
authorPierre Schweitzer <pierre@reactos.org>
Sat, 1 Sep 2018 10:18:51 +0000 (12:18 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 1 Sep 2018 10:41:01 +0000 (12:41 +0200)
Spotted by Thomas

modules/rostests/kmtests/ntos_cc/CcMapData_drv.c

index c7ed089..6624b10 100644 (file)
@@ -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;
 }