If the lock is acquired with ExAcquireSpinLockSharedAtDpcLevel(), it
should always be released with ExReleaseSpinLockSharedFromDpcLevel()
(unless the lock is converted to an exclusive lock)
Signed-off-by: Owen Smith <owen.smith@citrix.com>
fail1:
Error("fail1 (%08x)\n", status);
- __MacReleaseLockExclusive(Mac);
+ __MacReleaseLockShared(Mac);
KeLowerIrql(Irql);
return status;
fail1:
*Count = Mac->MulticastCount;
- __MacReleaseLockExclusive(Mac);
+ __MacReleaseLockShared(Mac);
KeLowerIrql(Irql);
return status;