Author: cwittich
Date: Sun Jul 8 17:24:53 2007
New Revision: 27472
URL:
http://svn.reactos.org/svn/reactos?rev=27472&view=rev
Log:
-use ExAllocatePoolWithTag instead of ExAllocatePool
-IoMapTransfer should not called without an AdapterObject
Modified:
trunk/reactos/drivers/storage/scsiport/scsiport.c
Modified: trunk/reactos/drivers/storage/scsiport/scsiport.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/scsiport/s…
==============================================================================
--- trunk/reactos/drivers/storage/scsiport/scsiport.c (original)
+++ trunk/reactos/drivers/storage/scsiport/scsiport.c Sun Jul 8 17:24:53 2007
@@ -698,7 +698,7 @@
if (!DeviceExtension->AdapterObject)
{
/* From nonpaged pool if there is no DMA */
- CommonBuffer = ExAllocatePool(NonPagedPool, CommonBufferLength);
+ CommonBuffer = ExAllocatePoolWithTag(NonPagedPool, CommonBufferLength,
TAG_SCSIPORT);
}
else
{
@@ -3058,8 +3058,8 @@
either from NonPagedPool, or from our static list */
if (SrbInfo->NumberOfMapRegisters > MAX_SG_LIST)
{
- SrbInfo->ScatterGather = ExAllocatePool(
- NonPagedPool, SrbInfo->NumberOfMapRegisters * sizeof(SCSI_SG_ADDRESS));
+ SrbInfo->ScatterGather = ExAllocatePoolWithTag(
+ NonPagedPool, SrbInfo->NumberOfMapRegisters * sizeof(SCSI_SG_ADDRESS),
TAG_SCSIPORT);
if (SrbInfo->ScatterGather == NULL)
ASSERT(FALSE);
@@ -3088,7 +3088,7 @@
while (TotalLength < Srb->DataTransferLength)
{
ScatterGatherList->Length = Srb->DataTransferLength - TotalLength;
- ScatterGatherList->PhysicalAddress = IoMapTransfer(NULL,
+ ScatterGatherList->PhysicalAddress =
IoMapTransfer(DeviceExtension->AdapterObject,
Irp->MdlAddress,
MapRegisterBase,
DataVA + TotalLength,