[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] Dont mix Exclusive and Shared locking calls
From: Owen Smith <owen.smith@xxxxxxxxxx> 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@xxxxxxxxxx> --- src/xenvif/mac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenvif/mac.c b/src/xenvif/mac.c index 3301ef9..a89904b 100644 --- a/src/xenvif/mac.c +++ b/src/xenvif/mac.c @@ -394,7 +394,7 @@ fail2: fail1: Error("fail1 (%08x)\n", status); - __MacReleaseLockExclusive(Mac); + __MacReleaseLockShared(Mac); KeLowerIrql(Irql); return status; @@ -974,7 +974,7 @@ MacQueryMulticastAddresses( fail1: *Count = Mac->MulticastCount; - __MacReleaseLockExclusive(Mac); + __MacReleaseLockShared(Mac); KeLowerIrql(Irql); return status; -- 2.16.2.windows.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |