Skip to content

Commit 259b195

Browse files
committed
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. svn path=/branches/GSoC_2016/USB/; revision=72376
1 parent aaa4941 commit 259b195

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/usb/usbhub/pdo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ USBHUB_PdoHandlePnp(
716716
}
717717

718718
/* allocate device relations */
719-
DeviceRelation = (PDEVICE_RELATIONS)ExAllocatePool(NonPagedPool, sizeof(DEVICE_RELATIONS));
719+
DeviceRelation = (PDEVICE_RELATIONS)ExAllocatePool(PagedPool, sizeof(DEVICE_RELATIONS));
720720
if (!DeviceRelation)
721721
{
722722
/* no memory */
@@ -730,7 +730,7 @@ USBHUB_PdoHandlePnp(
730730
ObReferenceObject(DeviceRelation->Objects[0]);
731731

732732
/* store result */
733-
Irp->IoStatus.Information = (ULONG_PTR)DeviceRelation;
733+
Information = (ULONG_PTR)DeviceRelation;
734734
Status = STATUS_SUCCESS;
735735
break;
736736
}

0 commit comments

Comments
 (0)