summaryrefslogtreecommitdiff
path: root/storage/class/classpnp/src/debug.c
diff options
context:
space:
mode:
authorAndrew Maczugowski <[email protected]>2021-01-14 14:55:13 -0500
committerGitHub <[email protected]>2021-01-14 11:55:13 -0800
commit31ef0db3ef36b4d1949ae9c8e2760a7f499d1113 (patch)
tree286dd17993cc3ac63cb9c6c56cd4e69e97e49f40 /storage/class/classpnp/src/debug.c
parent86e7b24148d1aafcf2d5c76d602561dddbd8fd0b (diff)
classpnp: Use ExAllocatePoolZero instead of ExAllocatePoolWithTag (#485)
* Replace unsafe allocation API with ExAllocatePool2 * Fix for downlevel support. Co-authored-by: Drew Maczugowski <[email protected]>
Diffstat (limited to 'storage/class/classpnp/src/debug.c')
-rw-r--r--storage/class/classpnp/src/debug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/storage/class/classpnp/src/debug.c b/storage/class/classpnp/src/debug.c
index cc288ec6..b811c6d0 100644
--- a/storage/class/classpnp/src/debug.c
+++ b/storage/class/classpnp/src/debug.c
@@ -165,8 +165,9 @@ Revision History:
"ClassDebugPrint: Allocating %x bytes for "
"classdebugprint buffer\n", (ULONG)bufferSize);
ClasspnpGlobals.Index = (ULONG)-1;
- ClasspnpGlobals.Buffer =
- ExAllocatePoolWithTag(NonPagedPoolNx, bufferSize, 'bDcS');
+ ClasspnpGlobals.Buffer = ExAllocatePoolZero(NonPagedPoolNx,
+ bufferSize,
+ 'bDcS');
DbgPrintEx(DPFLTR_CLASSPNP_ID, DPFLTR_ERROR_LEVEL,
"ClassDebugPrint: Allocated buffer at %p\n",
ClasspnpGlobals.Buffer);