mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[USBSTOR]
- Use pool tagging svn path=/trunk/; revision=73891
This commit is contained in:
parent
f36d39ae3a
commit
83ae839957
4 changed files with 21 additions and 13 deletions
|
@ -414,7 +414,7 @@ USBSTOR_SelectConfigurationAndInterface(
|
|||
//
|
||||
DPRINT1("USBSTOR_SelectConfiguration failed to set interface %x\n", Status);
|
||||
FreeItem(InterfaceList);
|
||||
ExFreePool(Urb);
|
||||
ExFreePoolWithTag(Urb, 0);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -428,7 +428,7 @@ USBSTOR_SelectConfigurationAndInterface(
|
|||
// failed to allocate interface information structure
|
||||
//
|
||||
FreeItem(InterfaceList);
|
||||
ExFreePool(Urb);
|
||||
ExFreePoolWithTag(Urb, 0);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -473,7 +473,7 @@ USBSTOR_SelectConfigurationAndInterface(
|
|||
// free interface list & urb
|
||||
//
|
||||
FreeItem(InterfaceList);
|
||||
ExFreePool(Urb);
|
||||
ExFreePoolWithTag(Urb, 0);
|
||||
|
||||
//
|
||||
// done
|
||||
|
|
|
@ -581,7 +581,9 @@ USBSTOR_HandleDeviceControl(
|
|||
/* Legacy port capability query */
|
||||
if (IoStack->Parameters.DeviceIoControl.OutputBufferLength == sizeof(PVOID))
|
||||
{
|
||||
Capabilities = *((PVOID *)Irp->AssociatedIrp.SystemBuffer) = ExAllocatePool(NonPagedPool, sizeof(IO_SCSI_CAPABILITIES));
|
||||
Capabilities = *((PVOID *)Irp->AssociatedIrp.SystemBuffer) = ExAllocatePoolWithTag(NonPagedPool,
|
||||
sizeof(IO_SCSI_CAPABILITIES),
|
||||
USB_STOR_TAG);
|
||||
Irp->IoStatus.Information = sizeof(PVOID);
|
||||
}
|
||||
else
|
||||
|
|
|
@ -268,7 +268,7 @@ ErrorHandlerWorkItemRoutine(
|
|||
//
|
||||
// Free Work Item Data
|
||||
//
|
||||
ExFreePool(WorkItemData);
|
||||
ExFreePoolWithTag(WorkItemData, USB_STOR_TAG);
|
||||
}
|
||||
|
||||
VOID
|
||||
|
@ -326,7 +326,7 @@ USBSTOR_TimerWorkerRoutine(
|
|||
//
|
||||
// Free Work Item Data
|
||||
//
|
||||
ExFreePool(WorkItemData);
|
||||
ExFreePoolWithTag(WorkItemData, USB_STOR_TAG);
|
||||
}
|
||||
|
||||
|
||||
|
@ -389,7 +389,9 @@ USBSTOR_TimerRoutine(
|
|||
|
||||
if (ResetDevice && FDODeviceExtension->TimerWorkQueueEnabled && FDODeviceExtension->SrbErrorHandlingActive == FALSE)
|
||||
{
|
||||
WorkItemData = (PERRORHANDLER_WORKITEM_DATA)ExAllocatePool(NonPagedPool, sizeof(ERRORHANDLER_WORKITEM_DATA));
|
||||
WorkItemData = ExAllocatePoolWithTag(NonPagedPool,
|
||||
sizeof(ERRORHANDLER_WORKITEM_DATA),
|
||||
USB_STOR_TAG);
|
||||
if (WorkItemData)
|
||||
{
|
||||
//
|
||||
|
|
|
@ -1018,7 +1018,9 @@ USBSTOR_AllocateIrp(
|
|||
//
|
||||
// create scsi block
|
||||
//
|
||||
Request = (PSCSI_REQUEST_BLOCK)ExAllocatePool(NonPagedPool, sizeof(SCSI_REQUEST_BLOCK));
|
||||
Request = ExAllocatePoolWithTag(NonPagedPool,
|
||||
sizeof(SCSI_REQUEST_BLOCK),
|
||||
USB_STOR_TAG);
|
||||
if (!Request)
|
||||
{
|
||||
//
|
||||
|
@ -1036,14 +1038,16 @@ USBSTOR_AllocateIrp(
|
|||
//
|
||||
// allocate data transfer block
|
||||
//
|
||||
Request->DataBuffer = ExAllocatePool(NonPagedPool, DataTransferLength);
|
||||
Request->DataBuffer = ExAllocatePoolWithTag(NonPagedPool,
|
||||
DataTransferLength,
|
||||
USB_STOR_TAG);
|
||||
if (!Request)
|
||||
{
|
||||
//
|
||||
// no memory
|
||||
//
|
||||
IoFreeIrp(Irp);
|
||||
ExFreePool(Request);
|
||||
ExFreePoolWithTag(Request, USB_STOR_TAG);
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
}
|
||||
|
||||
|
@ -1057,7 +1061,7 @@ USBSTOR_AllocateIrp(
|
|||
// no memory
|
||||
//
|
||||
IoFreeIrp(Irp);
|
||||
ExFreePool(Request);
|
||||
ExFreePoolWithTag(Request, USB_STOR_TAG);
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
}
|
||||
|
||||
|
@ -1169,7 +1173,7 @@ USBSTOR_SendIrp(
|
|||
//
|
||||
// free resources
|
||||
//
|
||||
ExFreePool(Request);
|
||||
ExFreePoolWithTag(Request, USB_STOR_TAG);
|
||||
IoFreeIrp(Irp);
|
||||
return Status;
|
||||
}
|
||||
|
@ -1255,7 +1259,7 @@ USBSTOR_SendFormatCapacityIrp(
|
|||
//
|
||||
// free response
|
||||
//
|
||||
ExFreePool(Response);
|
||||
ExFreePoolWithTag(Response, USB_STOR_TAG);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue