From 25d05a1982a6cc913b3d73aa3a348ea709013700 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sun, 28 Aug 2016 10:52:40 +0000 Subject: [PATCH] [USBHUB] - Return the correct pointer when handling TargetDeviceRelation, and avoid unnecessarily allocating from NonPagedPool. Patch by Vardan Mikayelyan, merged from r72376. svn path=/trunk/; revision=72485 --- reactos/drivers/usb/usbhub/pdo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/drivers/usb/usbhub/pdo.c b/reactos/drivers/usb/usbhub/pdo.c index 78139206287..2ba1cdf34b0 100644 --- a/reactos/drivers/usb/usbhub/pdo.c +++ b/reactos/drivers/usb/usbhub/pdo.c @@ -703,7 +703,7 @@ USBHUB_PdoHandlePnp( } /* allocate device relations */ - DeviceRelation = (PDEVICE_RELATIONS)ExAllocatePool(NonPagedPool, sizeof(DEVICE_RELATIONS)); + DeviceRelation = (PDEVICE_RELATIONS)ExAllocatePool(PagedPool, sizeof(DEVICE_RELATIONS)); if (!DeviceRelation) { /* no memory */ @@ -717,7 +717,7 @@ USBHUB_PdoHandlePnp( ObReferenceObject(DeviceRelation->Objects[0]); /* store result */ - Irp->IoStatus.Information = (ULONG_PTR)DeviceRelation; + Information = (ULONG_PTR)DeviceRelation; Status = STATUS_SUCCESS; break; }