summaryrefslogtreecommitdiff
path: root/storage/class/classpnp/src/debug.c
diff options
context:
space:
mode:
authorShantanu Gupta <[email protected]>2021-03-19 15:30:28 -0700
committerShantanu Gupta <[email protected]>2021-03-19 15:30:28 -0700
commit3ac047145909d338f1edbae9c11dc536aee3cda5 (patch)
tree1d3b731ad5678396ed514d07148777db658ab367 /storage/class/classpnp/src/debug.c
parentbee1573a5ba8d82f089e0dcb2b8113b12d4b60ba (diff)
parentb5fcd95c891f44000619c26635a483e5a7448ee1 (diff)
Merge remote-tracking branch 'upstream/master'
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);