diff options
| -rw-r--r-- | bluetooth/serialhcibus/Io.h | 2 | ||||
| -rw-r--r-- | bluetooth/serialhcibus/io.c | 2 |
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); |
