Fix swapped arguments in queued spinlock release

This commit is contained in:
2026-07-01 18:45:03 +02:00
parent 5cd52a4a12
commit 2b7fc5b41d

View File

@@ -263,7 +263,7 @@ KE::SpinLock::ReleaseQueuedSpinLock(IN PKSPIN_LOCK_QUEUE LockQueue)
if(!NextLockQueue) if(!NextLockQueue)
{ {
/* Remove the lock */ /* Remove the lock */
if(RTL::Atomic::CompareExchangePointer((PVOID *)LockQueue->Lock, NULLPTR, LockQueue) == LockQueue) if(RTL::Atomic::CompareExchangePointer((PVOID *)LockQueue->Lock, LockQueue, NULLPTR) == LockQueue)
{ {
/* Lock removed, exit */ /* Lock removed, exit */
return; return;