[KS]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 9 Oct 2009 16:48:41 +0000 (16:48 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 9 Oct 2009 16:48:41 +0000 (16:48 +0000)
- Fix a bug when canceling irps

svn path=/trunk/; revision=43344

reactos/drivers/ksfilter/ks/irp.c

index 8b975a2..21a6dd8 100644 (file)
@@ -1690,7 +1690,7 @@ KsCancelRoutine(
     RemoveEntryList(&Irp->Tail.Overlay.ListEntry);
 
     /* release spinlock */
-    KeReleaseSpinLockFromDpcLevel(SpinLock);
+    KeReleaseSpinLock(SpinLock, Irp->CancelIrql);
 
     /* has the irp already been canceled */
     if (Irp->IoStatus.Status != STATUS_CANCELLED)