summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHe Qian Wang <[email protected]>2022-03-24 20:26:58 -0400
committerGitHub <[email protected]>2022-03-24 17:26:58 -0700
commit6e59c4660b8da2de65334b4d732bcf6c85ed2837 (patch)
tree939ae09bffa39019c0652fb9f8d6fd9fac62f9e2
parentc4db3350be27b3bcf68dce5fdb7384e5df802ae4 (diff)
Changed ExAllocatePool to ExAllocatePool2 with tag (#636)
-rw-r--r--bluetooth/serialhcibus/Io.h2
-rw-r--r--bluetooth/serialhcibus/io.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/bluetooth/serialhcibus/Io.h b/bluetooth/serialhcibus/Io.h
index 76abb82a..322a1d86 100644
--- a/bluetooth/serialhcibus/Io.h
+++ b/bluetooth/serialhcibus/Io.h
@@ -50,6 +50,8 @@ Revision History:
#define BUFFER_AND_SIZE_ADJUSTED(Buffer, Size, SegmentCount, Increment) {Buffer += Increment; Size -= Increment; SegmentCount += Increment;}
+#define POOLTAG_BTHSERIALHCIBUSSAMPLE 'htbw'
+
#include <PSHPACK1.H>
//
diff --git a/bluetooth/serialhcibus/io.c b/bluetooth/serialhcibus/io.c
index c0a77142..522f785d 100644
--- a/bluetooth/serialhcibus/io.c
+++ b/bluetooth/serialhcibus/io.c
@@ -1178,7 +1178,7 @@ HLP_CreatePacketEntry(
{
PHCI_PACKET_ENTRY PacketEntry = NULL;
- PacketEntry = (PHCI_PACKET_ENTRY)ExAllocatePool(NonPagedPoolNx, sizeof(HCI_PACKET_ENTRY) + _PacketLength);
+ PacketEntry = (PHCI_PACKET_ENTRY)ExAllocatePool2(POOL_FLAG_NON_PAGED, sizeof(HCI_PACKET_ENTRY) + _PacketLength, POOLTAG_BTHSERIALHCIBUSSAMPLE);
if (PacketEntry != NULL) {
InitializeListHead(&PacketEntry->DataEntry);
RtlCopyMemory(PacketEntry->Packet, _Packet, _PacketLength);