From fae72f53263e7cb76b76a6ba0d3951556410882a Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Tue, 3 Feb 2026 20:17:28 +0100 Subject: [PATCH] Fix missing assignment of PointerPte --- xtoskrnl/mm/kpool.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtoskrnl/mm/kpool.cc b/xtoskrnl/mm/kpool.cc index 1e68a17..b026dc9 100644 --- a/xtoskrnl/mm/kpool.cc +++ b/xtoskrnl/mm/kpool.cc @@ -160,7 +160,7 @@ MM::KernelPool::FreeKernelStack(IN PVOID Stack, ULONG Index; /* Get the PTE for the top of the stack, including the guard page */ - MM::Paging::AdvancePte(MM::Paging::GetPteAddress(Stack), -1); + PointerPte = MM::Paging::AdvancePte(MM::Paging::GetPteAddress(Stack), -1); /* Convert the stack size into a page count */ StackPages = SIZE_TO_PAGES(StackSize);