Author: vmikayelyan
Date: Fri Aug 19 16:18:59 2016
New Revision: 72377
URL:
http://svn.reactos.org/svn/reactos?rev=72377&view=rev
Log:
usb: hub: Fix in USBHUB_DispatchPower
In case of FDO it should pass IRP down.
Modified:
branches/GSoC_2016/USB/drivers/usb/usbhub/usbhub.c
Modified: branches/GSoC_2016/USB/drivers/usb/usbhub/usbhub.c
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2016/USB/drivers/usb/usbhu…
==============================================================================
--- branches/GSoC_2016/USB/drivers/usb/usbhub/usbhub.c [iso-8859-1] (original)
+++ branches/GSoC_2016/USB/drivers/usb/usbhub/usbhub.c [iso-8859-1] Fri Aug 19 16:18:59
2016
@@ -188,9 +188,18 @@
PIRP Irp)
{
PIO_STACK_LOCATION IoStack;
+ PHUB_DEVICE_EXTENSION DeviceExtension;
IoStack = IoGetCurrentIrpStackLocation(Irp);
+ DeviceExtension = DeviceObject->DeviceExtension;
DPRINT1("Power Function %x\n", IoStack->MinorFunction);
+
+ if (DeviceExtension->Common.IsFDO)
+ {
+ PoStartNextPowerIrp(Irp);
+ IoSkipCurrentIrpStackLocation(Irp);
+ return PoCallDriver(DeviceExtension->LowerDeviceObject, Irp);
+ }
if (IoStack->MinorFunction == IRP_MN_SET_POWER)
{