Author: vmikayelyan
Date: Fri Aug 19 16:15:31 2016
New Revision: 72376
URL:
http://svn.reactos.org/svn/reactos?rev=72376&view=rev
Log:
usb: hub: PDO: Fix in IRP_MN_QUERY_DEVICE_RELATIONS handler
I don't see the reason for allocation from NonPagedPool, also
the information field writing was wrong.
Modified:
branches/GSoC_2016/USB/drivers/usb/usbhub/pdo.c
Modified: branches/GSoC_2016/USB/drivers/usb/usbhub/pdo.c
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2016/USB/drivers/usb/usbhu…
==============================================================================
--- branches/GSoC_2016/USB/drivers/usb/usbhub/pdo.c [iso-8859-1] (original)
+++ branches/GSoC_2016/USB/drivers/usb/usbhub/pdo.c [iso-8859-1] Fri Aug 19 16:15:31 2016
@@ -716,7 +716,7 @@
}
/* allocate device relations */
- DeviceRelation = (PDEVICE_RELATIONS)ExAllocatePool(NonPagedPool,
sizeof(DEVICE_RELATIONS));
+ DeviceRelation = (PDEVICE_RELATIONS)ExAllocatePool(PagedPool,
sizeof(DEVICE_RELATIONS));
if (!DeviceRelation)
{
/* no memory */
@@ -730,7 +730,7 @@
ObReferenceObject(DeviceRelation->Objects[0]);
/* store result */
- Irp->IoStatus.Information = (ULONG_PTR)DeviceRelation;
+ Information = (ULONG_PTR)DeviceRelation;
Status = STATUS_SUCCESS;
break;
}