Fix swapped arguments in queued spinlock release
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user