mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[HIDCLASS]
Patch by Lesan Ilie: - Avoid over-allocating the DEVICE_RELATIONS structure in HidClassPDO_CreatePDO - Allocate device relations from paged pool CORE-13052 #resolve svn path=/trunk/; revision=74302
This commit is contained in:
@@ -652,8 +652,8 @@ HidClassPDO_CreatePDO(
|
||||
//
|
||||
// first allocate device relations
|
||||
//
|
||||
Length = sizeof(DEVICE_RELATIONS) + sizeof(PDEVICE_OBJECT) * FDODeviceExtension->Common.DeviceDescription.CollectionDescLength;
|
||||
DeviceRelations = ExAllocatePoolWithTag(NonPagedPool, Length, HIDCLASS_TAG);
|
||||
Length = FIELD_OFFSET(DEVICE_RELATIONS, Objects) + sizeof(PDEVICE_OBJECT) * FDODeviceExtension->Common.DeviceDescription.CollectionDescLength;
|
||||
DeviceRelations = ExAllocatePoolWithTag(PagedPool, Length, HIDCLASS_TAG);
|
||||
if (!DeviceRelations)
|
||||
{
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user