Skip to content

Commit b3b98de

Browse files
committed
usb: hub: PDO: Fail IRP_MN_QUERY_STOP_DEVICE.
We should fail this request, because we're not handling IRP_MN_STOP_DEVICE for now. On systems above win2000 we'll receive this IRP ONLY when the PnP manager rebalances resources. svn path=/branches/GSoC_2016/USB/; revision=72369
1 parent 3a74eae commit b3b98de

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/usb/usbhub/pdo.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,14 @@ USBHUB_PdoHandlePnp(
729729
break;
730730
}
731731
case IRP_MN_QUERY_STOP_DEVICE:
732+
{
733+
//
734+
// We should fail this request, because we're not handling IRP_MN_STOP_DEVICE for now.
735+
// We'll receive this IRP ONLY when the PnP manager rebalances resources.
736+
//
737+
Status = STATUS_NOT_SUPPORTED;
738+
break;
739+
}
732740
case IRP_MN_QUERY_REMOVE_DEVICE:
733741
{
734742
// HERE SHOULD BE CHECKED INTERFACE COUNT PROVIED TO UPPER LAYER TO BE ZERO, AS WE ARE HANDLING

0 commit comments

Comments
 (0)