Free affinity maps on allocation failure and remove redundant idle process affinity loop
All checks were successful
Builds / ExectOS (i686, debug) (push) Successful in 30s
Builds / ExectOS (amd64, release) (push) Successful in 41s
Builds / ExectOS (amd64, debug) (push) Successful in 42s
Builds / ExectOS (i686, release) (push) Successful in 34s

This commit is contained in:
2026-06-10 14:08:07 +02:00
parent 429e4ef6f1
commit c57aa98923
5 changed files with 36 additions and 18 deletions

View File

@@ -63,11 +63,12 @@ KE::KThread::InitializeIdleThread(IN PKPROCESS IdleProcess,
return Status;
}
/* Allocate and initialize the primary affinity map for the thread */
/* Allocate and initialize the user-mode affinity map for the thread */
Status = KE::Affinity::CreateAffinityMap(Cpus, &IdleThread->UserAffinity);
if(Status != STATUS_SUCCESS)
{
/* Affinity map allocation failed, return status code */
/* Affinity map allocation failed, free affinity map and return status code */
KE::Affinity::DestroyAffinityMap(IdleThread->Affinity);
return Status;
}