mirror of
https://github.com/reactos/reactos.git
synced 2025-06-18 17:05:20 +00:00
Allocate without a tag if buffer won't be freed by the driver
svn path=/trunk/; revision=35922
This commit is contained in:
parent
7e71eef68b
commit
c751990c17
3 changed files with 3 additions and 3 deletions
|
@ -206,7 +206,7 @@ FdoQueryBusRelations(
|
||||||
|
|
||||||
Size = sizeof(DEVICE_RELATIONS) + sizeof(Relations->Objects) *
|
Size = sizeof(DEVICE_RELATIONS) + sizeof(Relations->Objects) *
|
||||||
(DeviceExtension->DeviceListCount - 1);
|
(DeviceExtension->DeviceListCount - 1);
|
||||||
Relations = (PDEVICE_RELATIONS)ExAllocatePoolWithTag(PagedPool, Size, TAG_PCI);
|
Relations = (PDEVICE_RELATIONS)ExAllocatePool(PagedPool, Size);
|
||||||
if (!Relations)
|
if (!Relations)
|
||||||
return STATUS_INSUFFICIENT_RESOURCES;
|
return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
|
|
||||||
|
|
|
@ -136,7 +136,7 @@ PdoQueryBusInformation(
|
||||||
|
|
||||||
DeviceExtension = (PPDO_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
|
DeviceExtension = (PPDO_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
|
||||||
FdoDeviceExtension = (PFDO_DEVICE_EXTENSION)DeviceExtension->Fdo->DeviceExtension;
|
FdoDeviceExtension = (PFDO_DEVICE_EXTENSION)DeviceExtension->Fdo->DeviceExtension;
|
||||||
BusInformation = ExAllocatePoolWithTag(PagedPool, sizeof(PNP_BUS_INFORMATION), TAG_PCI);
|
BusInformation = ExAllocatePool(PagedPool, sizeof(PNP_BUS_INFORMATION));
|
||||||
Irp->IoStatus.Information = (ULONG_PTR)BusInformation;
|
Irp->IoStatus.Information = (ULONG_PTR)BusInformation;
|
||||||
if (BusInformation != NULL)
|
if (BusInformation != NULL)
|
||||||
{
|
{
|
||||||
|
|
|
@ -673,7 +673,7 @@ i8042Pnp(
|
||||||
PDEVICE_RELATIONS DeviceRelations;
|
PDEVICE_RELATIONS DeviceRelations;
|
||||||
|
|
||||||
TRACE_(I8042PRT, "IRP_MJ_PNP / IRP_MN_QUERY_DEVICE_RELATIONS / BusRelations\n");
|
TRACE_(I8042PRT, "IRP_MJ_PNP / IRP_MN_QUERY_DEVICE_RELATIONS / BusRelations\n");
|
||||||
DeviceRelations = ExAllocatePoolWithTag(PagedPool, sizeof(DEVICE_RELATIONS), I8042PRT_TAG);
|
DeviceRelations = ExAllocatePool(PagedPool, sizeof(DEVICE_RELATIONS));
|
||||||
if (DeviceRelations)
|
if (DeviceRelations)
|
||||||
{
|
{
|
||||||
DeviceRelations->Count = 0;
|
DeviceRelations->Count = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue