From 8fcd78318f7cde5ebb1eefa9ea8620c45a5a9c2f Mon Sep 17 00:00:00 2001 From: Thamatip Chitpong Date: Tue, 24 Dec 2024 15:30:58 +0700 Subject: [PATCH] [NTOS:MM] MmRebalanceMemoryConsumers: Fix PageOutThreadActive value check --- ntoskrnl/mm/balance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntoskrnl/mm/balance.c b/ntoskrnl/mm/balance.c index 3b11aeab2c8ff..001a85823437f 100644 --- a/ntoskrnl/mm/balance.c +++ b/ntoskrnl/mm/balance.c @@ -289,7 +289,7 @@ VOID NTAPI MmRebalanceMemoryConsumers(VOID) { - // if (InterlockedCompareExchange(&PageOutThreadActive, 0, 1) == 0) + if (InterlockedCompareExchange(&PageOutThreadActive, 1, 0) == 0) { KeSetEvent(&MiBalancerEvent, IO_NO_INCREMENT, FALSE); }