projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[AFD] Introduce and use pool tags. Thanks go to Arty for assisting me with this....
[reactos.git]
/
drivers
/
network
/
afd
/
afd
/
info.c
diff --git
a/drivers/network/afd/afd/info.c
b/drivers/network/afd/afd/info.c
index
162f660
..
1c05842
100644
(file)
--- a/
drivers/network/afd/afd/info.c
+++ b/
drivers/network/afd/afd/info.c
@@
-124,7
+124,10
@@
AfdSetInfo( PDEVICE_OBJECT DeviceObject, PIRP Irp,
FCB->OobInline = InfoReq->Information.Boolean;
break;
case AFD_INFO_RECEIVE_WINDOW_SIZE:
FCB->OobInline = InfoReq->Information.Boolean;
break;
case AFD_INFO_RECEIVE_WINDOW_SIZE:
- NewBuffer = ExAllocatePool(PagedPool, InfoReq->Information.Ulong);
+ NewBuffer = ExAllocatePoolWithTag(PagedPool,
+ InfoReq->Information.Ulong,
+ TAG_AFD_DATA_BUFFER);
+
if (NewBuffer)
{
if (FCB->Recv.Content > InfoReq->Information.Ulong)
if (NewBuffer)
{
if (FCB->Recv.Content > InfoReq->Information.Ulong)
@@
-136,7
+139,7
@@
AfdSetInfo( PDEVICE_OBJECT DeviceObject, PIRP Irp,
FCB->Recv.Window,
FCB->Recv.Content);
FCB->Recv.Window,
FCB->Recv.Content);
- ExFreePool
(FCB->Recv.Window
);
+ ExFreePool
WithTag(FCB->Recv.Window, TAG_AFD_DATA_BUFFER
);
}
FCB->Recv.Size = InfoReq->Information.Ulong;
}
FCB->Recv.Size = InfoReq->Information.Ulong;
@@
-150,7
+153,10
@@
AfdSetInfo( PDEVICE_OBJECT DeviceObject, PIRP Irp,
}
break;
case AFD_INFO_SEND_WINDOW_SIZE:
}
break;
case AFD_INFO_SEND_WINDOW_SIZE:
- NewBuffer = ExAllocatePool(PagedPool, InfoReq->Information.Ulong);
+ NewBuffer = ExAllocatePoolWithTag(PagedPool,
+ InfoReq->Information.Ulong,
+ TAG_AFD_DATA_BUFFER);
+
if (NewBuffer)
{
if (FCB->Send.BytesUsed > InfoReq->Information.Ulong)
if (NewBuffer)
{
if (FCB->Send.BytesUsed > InfoReq->Information.Ulong)
@@
-162,7
+168,7
@@
AfdSetInfo( PDEVICE_OBJECT DeviceObject, PIRP Irp,
FCB->Send.Window,
FCB->Send.BytesUsed);
FCB->Send.Window,
FCB->Send.BytesUsed);
- ExFreePool
(FCB->Send.Window
);
+ ExFreePool
WithTag(FCB->Send.Window, TAG_AFD_DATA_BUFFER
);
}
FCB->Send.Size = InfoReq->Information.Ulong;
}
FCB->Send.Size = InfoReq->Information.Ulong;