[ros-diffs] [hpoussin] 35922: Allocate without a tag if buffer won't be freed by the driver

hpoussin at svn.reactos.org hpoussin at svn.reactos.org
Thu Sep 4 10:49:22 CEST 2008


Author: hpoussin
Date: Thu Sep  4 03:49:22 2008
New Revision: 35922

URL: http://svn.reactos.org/svn/reactos?rev=35922&view=rev
Log:
Allocate without a tag if buffer won't be freed by the driver

Modified:
    trunk/reactos/drivers/bus/pci/fdo.c
    trunk/reactos/drivers/bus/pci/pdo.c
    trunk/reactos/drivers/input/i8042prt/pnp.c

Modified: trunk/reactos/drivers/bus/pci/fdo.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pci/fdo.c?rev=35922&r1=35921&r2=35922&view=diff
==============================================================================
--- trunk/reactos/drivers/bus/pci/fdo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/pci/fdo.c [iso-8859-1] Thu Sep  4 03:49:22 2008
@@ -206,7 +206,7 @@
 
   Size = sizeof(DEVICE_RELATIONS) + sizeof(Relations->Objects) *
     (DeviceExtension->DeviceListCount - 1);
-  Relations = (PDEVICE_RELATIONS)ExAllocatePoolWithTag(PagedPool, Size, TAG_PCI);
+  Relations = (PDEVICE_RELATIONS)ExAllocatePool(PagedPool, Size);
   if (!Relations)
     return STATUS_INSUFFICIENT_RESOURCES;
 

Modified: trunk/reactos/drivers/bus/pci/pdo.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pci/pdo.c?rev=35922&r1=35921&r2=35922&view=diff
==============================================================================
--- trunk/reactos/drivers/bus/pci/pdo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/pci/pdo.c [iso-8859-1] Thu Sep  4 03:49:22 2008
@@ -136,7 +136,7 @@
 
   DeviceExtension = (PPDO_DEVICE_EXTENSION)DeviceObject->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;
   if (BusInformation != NULL)
   {

Modified: trunk/reactos/drivers/input/i8042prt/pnp.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/input/i8042prt/pnp.c?rev=35922&r1=35921&r2=35922&view=diff
==============================================================================
--- trunk/reactos/drivers/input/i8042prt/pnp.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/input/i8042prt/pnp.c [iso-8859-1] Thu Sep  4 03:49:22 2008
@@ -673,7 +673,7 @@
 					PDEVICE_RELATIONS DeviceRelations;
 
 					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)
 					{
 						DeviceRelations->Count = 0;



More information about the Ros-diffs mailing list