mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 04:13:35 +00:00
A driver-supplied Cancel routine is called with the cancel spin lock held, it must be released on IRP completion. Patch by R.T.Sivakumar <[email protected]>.
svn path=/trunk/; revision=33429
This commit is contained in:
@@ -729,8 +729,8 @@ ClassCancelRoutine(
|
||||
|
||||
ASSERT(ClassDeviceExtension->Common.IsClassDO);
|
||||
|
||||
IoReleaseCancelSpinLock(Irp->CancelIrql);
|
||||
KeAcquireSpinLock(&ClassDeviceExtension->SpinLock, &OldIrql);
|
||||
IoAcquireCancelSpinLock(&OldIrql);
|
||||
if (ClassDeviceExtension->PendingIrp == Irp)
|
||||
{
|
||||
ClassDeviceExtension->PendingIrp = NULL;
|
||||
|
||||
Reference in New Issue
Block a user