* - Allocate a big enough buffer
* - And read the disk
*/
- Sector = ExAllocatePoolWithTag(NonPagedPool, Length, TAG_VFAT);
+ Sector = ExAllocatePoolWithTag(NonPagedPool, Length, TAG_BUFFER);
if (Sector == NULL)
{
*DirtyStatus = TRUE;
if (!NT_SUCCESS(Status))
{
*DirtyStatus = TRUE;
- ExFreePoolWithTag(Sector, TAG_VFAT);
+ ExFreePoolWithTag(Sector, TAG_BUFFER);
return Status;
}
#endif
#ifndef VOLUME_IS_NOT_CACHED_WORK_AROUND_IT
CcUnpinData(Context);
#else
- ExFreePoolWithTag(Sector, TAG_VFAT);
+ ExFreePoolWithTag(Sector, TAG_BUFFER);
#endif
return STATUS_DISK_CORRUPT_ERROR;
}
#ifndef VOLUME_IS_NOT_CACHED_WORK_AROUND_IT
CcUnpinData(Context);
#else
- ExFreePoolWithTag(Sector, TAG_VFAT);
+ ExFreePoolWithTag(Sector, TAG_BUFFER);
#endif
return STATUS_SUCCESS;
}
* - Allocate a big enough buffer
* - And read the disk
*/
- Sector = ExAllocatePoolWithTag(NonPagedPool, Length, TAG_VFAT);
+ Sector = ExAllocatePoolWithTag(NonPagedPool, Length, TAG_BUFFER);
if (Sector == NULL)
{
*DirtyStatus = TRUE;
if (!NT_SUCCESS(Status))
{
*DirtyStatus = TRUE;
- ExFreePoolWithTag(Sector, TAG_VFAT);
+ ExFreePoolWithTag(Sector, TAG_BUFFER);
return Status;
}
#endif
#ifndef VOLUME_IS_NOT_CACHED_WORK_AROUND_IT
CcUnpinData(Context);
#else
- ExFreePoolWithTag(Sector, TAG_VFAT);
+ ExFreePoolWithTag(Sector, TAG_BUFFER);
#endif
return STATUS_DISK_CORRUPT_ERROR;
}
#ifndef VOLUME_IS_NOT_CACHED_WORK_AROUND_IT
CcUnpinData(Context);
#else
- ExFreePoolWithTag(Sector, TAG_VFAT);
+ ExFreePoolWithTag(Sector, TAG_BUFFER);
#endif
return STATUS_SUCCESS;
}
* - Allocate a big enough buffer
* - And read the disk
*/
- Sector = ExAllocatePoolWithTag(NonPagedPool, Length, TAG_VFAT);
+ Sector = ExAllocatePoolWithTag(NonPagedPool, Length, TAG_BUFFER);
if (Sector == NULL)
{
return STATUS_INSUFFICIENT_RESOURCES;
Status = VfatReadDisk(DeviceExt->StorageDevice, &Offset, Length, (PUCHAR)Sector, FALSE);
if (!NT_SUCCESS(Status))
{
- ExFreePoolWithTag(Sector, TAG_VFAT);
+ ExFreePoolWithTag(Sector, TAG_BUFFER);
return Status;
}
#endif
#ifndef VOLUME_IS_NOT_CACHED_WORK_AROUND_IT
CcUnpinData(Context);
#else
- ExFreePoolWithTag(Sector, TAG_VFAT);
+ ExFreePoolWithTag(Sector, TAG_BUFFER);
#endif
return STATUS_DISK_CORRUPT_ERROR;
}
#else
/* Write back the boot sector to the disk */
Status = VfatWriteDisk(DeviceExt->StorageDevice, &Offset, Length, (PUCHAR)Sector, FALSE);
- ExFreePoolWithTag(Sector, TAG_VFAT);
+ ExFreePoolWithTag(Sector, TAG_BUFFER);
return Status;
#endif
}
* - Allocate a big enough buffer
* - And read the disk
*/
- Sector = ExAllocatePoolWithTag(NonPagedPool, Length, TAG_VFAT);
+ Sector = ExAllocatePoolWithTag(NonPagedPool, Length, TAG_BUFFER);
if (Sector == NULL)
{
return STATUS_INSUFFICIENT_RESOURCES;
Status = VfatReadDisk(DeviceExt->StorageDevice, &Offset, Length, (PUCHAR)Sector, FALSE);
if (!NT_SUCCESS(Status))
{
- ExFreePoolWithTag(Sector, TAG_VFAT);
+ ExFreePoolWithTag(Sector, TAG_BUFFER);
return Status;
}
#endif
#ifndef VOLUME_IS_NOT_CACHED_WORK_AROUND_IT
CcUnpinData(Context);
#else
- ExFreePoolWithTag(Sector, TAG_VFAT);
+ ExFreePoolWithTag(Sector, TAG_BUFFER);
#endif
return STATUS_DISK_CORRUPT_ERROR;
}
#else
/* Write back the boot sector to the disk */
Status = VfatWriteDisk(DeviceExt->StorageDevice, &Offset, Length, (PUCHAR)Sector, FALSE);
- ExFreePoolWithTag(Sector, TAG_VFAT);
+ ExFreePoolWithTag(Sector, TAG_BUFFER);
return Status;
#endif
}
* - Allocate a big enough buffer
* - And read the disk
*/
- Sector = ExAllocatePoolWithTag(NonPagedPool, Length, TAG_VFAT);
+ Sector = ExAllocatePoolWithTag(NonPagedPool, Length, TAG_BUFFER);
if (Sector == NULL)
{
return STATUS_INSUFFICIENT_RESOURCES;
Status = VfatReadDisk(DeviceExt->StorageDevice, &Offset, Length, (PUCHAR)Sector, FALSE);
if (!NT_SUCCESS(Status))
{
- ExFreePoolWithTag(Sector, TAG_VFAT);
+ ExFreePoolWithTag(Sector, TAG_BUFFER);
return Status;
}
#endif
#ifndef VOLUME_IS_NOT_CACHED_WORK_AROUND_IT
CcUnpinData(Context);
#else
- ExFreePoolWithTag(Sector, TAG_VFAT);
+ ExFreePoolWithTag(Sector, TAG_BUFFER);
#endif
return STATUS_DISK_CORRUPT_ERROR;
}
#else
/* Write back the FSINFO sector to the disk */
Status = VfatWriteDisk(DeviceExt->StorageDevice, &Offset, Length, (PUCHAR)Sector, FALSE);
- ExFreePoolWithTag(Sector, TAG_VFAT);
+ ExFreePoolWithTag(Sector, TAG_BUFFER);
return Status;
#endif
}