mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
A driver-supplied Cancel routine is called with the cancel spin lock held, it must be released on IRP completion.
This was inverted in mouclass. Fix by Samuel Serapión. svn path=/trunk/; revision=33089
This commit is contained in:
parent
659ebcce5b
commit
c4db2ba2dc
1 changed files with 3 additions and 1 deletions
|
@ -705,8 +705,10 @@ ClassCancelRoutine(
|
|||
|
||||
ASSERT(ClassDeviceExtension->Common.IsClassDO);
|
||||
|
||||
IoReleaseCancelSpinLock(Irp->CancelIrql);
|
||||
|
||||
KeAcquireSpinLock(&ClassDeviceExtension->SpinLock, &OldIrql);
|
||||
IoAcquireCancelSpinLock(&OldIrql);
|
||||
|
||||
if (ClassDeviceExtension->PendingIrp == Irp)
|
||||
{
|
||||
ClassDeviceExtension->PendingIrp = NULL;
|
||||
|
|
Loading…
Reference in a new issue