Skip to content

Commit ada3e93

Browse files
committed
usb: hub: PDO: InternalDeviceControl can be called in DPC
As InternalDeviceControl can be called in DPC, we should avoid scanning of parent's child list because it uses guarded mutex for synchronization. So here we just adding new checking for safety and removing isValidPDO() call. svn path=/branches/GSoC_2016/USB/; revision=72393
1 parent 23d8d38 commit ada3e93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/usbhub/pdo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ USBHUB_PdoHandleInternalDeviceControl(
210210

211211
if (ChildDeviceExtension->Common.PnPState == SurpriseRemovePending ||
212212
ChildDeviceExtension->Common.PnPState == RemovePending ||
213-
!IsValidPDO(DeviceObject))
213+
ChildDeviceExtension->ParentDeviceObject == NULL)
214214
{
215215
// Parent or child device was surprise removed.
216216
DPRINT1("[USBHUB] Request for removed device object %p\n", DeviceObject);

0 commit comments

Comments
 (0)