projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e47240f
)
[USBPORT] Acquire EndpointSpinLock in addition to MiniportSpinLock in USBPORT_ReopenPipe.
author
Thomas Faber
<thomas.faber@reactos.org>
Wed, 6 Mar 2019 08:23:26 +0000
(09:23 +0100)
committer
Thomas Faber
<thomas.faber@reactos.org>
Mon, 11 Mar 2019 07:53:52 +0000
(08:53 +0100)
drivers/usb/usbport/endpoint.c
patch
|
blob
|
history
diff --git
a/drivers/usb/usbport/endpoint.c
b/drivers/usb/usbport/endpoint.c
index
c1624ec
..
40efddf
100644
(file)
--- a/
drivers/usb/usbport/endpoint.c
+++ b/
drivers/usb/usbport/endpoint.c
@@
-1186,13
+1186,15
@@
USBPORT_ReopenPipe(IN PDEVICE_OBJECT FdoDevice,
USBPORT_Wait(FdoDevice, 1);
}
USBPORT_Wait(FdoDevice, 1);
}
- KeAcquireSpinLock(&FdoExtension->MiniportSpinLock, &MiniportOldIrql);
+ KeAcquireSpinLock(&Endpoint->EndpointSpinLock, &Endpoint->EndpointOldIrql);
+ KeAcquireSpinLockAtDpcLevel(&FdoExtension->MiniportSpinLock);
Packet->SetEndpointState(FdoExtension->MiniPortExt,
Endpoint + 1,
USBPORT_ENDPOINT_REMOVE);
Packet->SetEndpointState(FdoExtension->MiniPortExt,
Endpoint + 1,
USBPORT_ENDPOINT_REMOVE);
- KeReleaseSpinLock(&FdoExtension->MiniportSpinLock, MiniportOldIrql);
+ KeReleaseSpinLockFromDpcLevel(&FdoExtension->MiniportSpinLock);
+ KeReleaseSpinLock(&Endpoint->EndpointSpinLock, Endpoint->EndpointOldIrql);
USBPORT_Wait(FdoDevice, 2);
USBPORT_Wait(FdoDevice, 2);