diff options
| author | Andrew Maczugowski <[email protected]> | 2021-01-14 14:55:13 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-14 11:55:13 -0800 |
| commit | 31ef0db3ef36b4d1949ae9c8e2760a7f499d1113 (patch) | |
| tree | 286dd17993cc3ac63cb9c6c56cd4e69e97e49f40 /storage/class/classpnp/src/debug.c | |
| parent | 86e7b24148d1aafcf2d5c76d602561dddbd8fd0b (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.c | 5 |
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); |
