mirror of
https://github.com/reactos/reactos.git
synced 2024-08-05 19:11:16 +00:00
[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
This commit is contained in:
parent
c49c7bb373
commit
25d05a1982
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue