use ExAllocatePoolWithTag instead of ExAllocatePool

svn path=/trunk/; revision=30597
This commit is contained in:
Christoph von Wittich 2007-11-20 15:26:17 +00:00
parent 418e0cc05a
commit 5fa07ce1cc
5 changed files with 7 additions and 6 deletions

View file

@ -201,7 +201,7 @@ FindFile (
DPRINT ("FindFile: Path %wZ)\n",&Parent->PathNameU);
PathNameBufferLength = LONGNAME_MAX_LENGTH * sizeof(WCHAR);
PathNameBuffer = ExAllocatePool(NonPagedPool, PathNameBufferLength + sizeof(WCHAR));
PathNameBuffer = ExAllocatePoolWithTag(NonPagedPool, PathNameBufferLength + sizeof(WCHAR), TAG_VFAT);
if (!PathNameBuffer)
{
CHECKPOINT1;

View file

@ -351,7 +351,7 @@ static NTSTATUS DoQuery (PVFAT_IRP_CONTEXT IrpContext)
{
FirstQuery = TRUE;
pCcb->SearchPattern.MaximumLength = pSearchPattern->Length + sizeof(WCHAR);
pCcb->SearchPattern.Buffer = ExAllocatePool(NonPagedPool, pCcb->SearchPattern.MaximumLength);
pCcb->SearchPattern.Buffer = ExAllocatePoolWithTag(NonPagedPool, pCcb->SearchPattern.MaximumLength, TAG_VFAT);
if (!pCcb->SearchPattern.Buffer)
{
ExReleaseResourceLite(&pFcb->MainResource);
@ -365,7 +365,7 @@ static NTSTATUS DoQuery (PVFAT_IRP_CONTEXT IrpContext)
{
FirstQuery = TRUE;
pCcb->SearchPattern.MaximumLength = 2 * sizeof(WCHAR);
pCcb->SearchPattern.Buffer = ExAllocatePool(NonPagedPool, 2 * sizeof(WCHAR));
pCcb->SearchPattern.Buffer = ExAllocatePoolWithTag(NonPagedPool, 2 * sizeof(WCHAR), TAG_VFAT);
if (!pCcb->SearchPattern.Buffer)
{
ExReleaseResourceLite(&pFcb->MainResource);

View file

@ -219,7 +219,7 @@ FATAddEntry (PDEVICE_EXTENSION DeviceExt,
nbSlots = (DirContext.LongNameU.Length / sizeof(WCHAR) + 12) / 13 + 1; //nb of entry needed for long name+normal entry
DPRINT ("NameLen= %d, nbSlots =%d\n", DirContext.LongNameU.Length / sizeof(WCHAR), nbSlots);
Buffer = ExAllocatePool (NonPagedPool, (nbSlots - 1) * sizeof (FAT_DIR_ENTRY));
Buffer = ExAllocatePoolWithTag (NonPagedPool, (nbSlots - 1) * sizeof (FAT_DIR_ENTRY), TAG_VFAT);
if (Buffer == NULL)
{
return STATUS_INSUFFICIENT_RESOURCES;

View file

@ -133,7 +133,7 @@ VfatHasFileSystem(PDEVICE_OBJECT DeviceToMount,
if (*RecognizedFS)
{
Boot = ExAllocatePool(NonPagedPool, DiskGeometry.BytesPerSector);
Boot = ExAllocatePoolWithTag(NonPagedPool, DiskGeometry.BytesPerSector, TAG_VFAT);
if (Boot == NULL)
{
return STATUS_INSUFFICIENT_RESOURCES;
@ -257,7 +257,7 @@ VfatHasFileSystem(PDEVICE_OBJECT DeviceToMount,
if (!*RecognizedFS && PartitionInfoIsValid)
{
BootFatX = ExAllocatePool(NonPagedPool, sizeof(struct _BootSectorFatX));
BootFatX = ExAllocatePoolWithTag(NonPagedPool, sizeof(struct _BootSectorFatX), TAG_VFAT);
if (BootFatX == NULL)
{
*RecognizedFS=FALSE;

View file

@ -413,6 +413,7 @@ typedef struct _VFATCCB
#define TAG_CCB TAG('V', 'C', 'C', 'B')
#define TAG_FCB TAG('V', 'F', 'C', 'B')
#define TAG_IRP TAG('V', 'I', 'R', 'P')
#define TAG_VFAT TAG('V', 'F', 'A', 'T')
#define ENTRIES_PER_SECTOR (BLOCKSIZE / sizeof(FATDirEntry))