summaryrefslogtreecommitdiff
path: root/storage/class/disk/src/geometry.c
diff options
context:
space:
mode:
authordwimmel-msft <[email protected]>2022-05-04 11:03:57 -0700
committerGitHub <[email protected]>2022-05-04 11:03:57 -0700
commita423bafcdcf7a58de7d3abd284f6107e4cce329f (patch)
treea5fd33f061d96ad3151270816f4dcb4f3d86476c /storage/class/disk/src/geometry.c
parent30f39e4a535b0b4bc7215fdeee6b6d3a0659a797 (diff)
[storage/class/disk] Use ExAllocatePool2 (#712)
Diffstat (limited to 'storage/class/disk/src/geometry.c')
-rw-r--r--storage/class/disk/src/geometry.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/storage/class/disk/src/geometry.c b/storage/class/disk/src/geometry.c
index a852c092..7017ee82 100644
--- a/storage/class/disk/src/geometry.c
+++ b/storage/class/disk/src/geometry.c
@@ -328,7 +328,7 @@ DiskSaveGeometryDetectInfo(
RtlInitUnicodeString(&unicodeString, L"Configuration Data");
- keyData = ExAllocatePoolWithTag(PagedPool,
+ keyData = ExAllocatePool2(POOL_FLAG_PAGED,
VALUE_BUFFER_SIZE,
DISK_TAG_UPDATE_GEOM);
@@ -395,7 +395,7 @@ DiskSaveGeometryDetectInfo(
//
length = sizeof(DISK_DETECT_INFO) * numberOfDrives;
- DetectInfoList = ExAllocatePoolWithTag(PagedPool,
+ DetectInfoList = ExAllocatePool2(POOL_FLAG_PAGED,
length,
DISK_TAG_UPDATE_GEOM);
@@ -410,8 +410,6 @@ DiskSaveGeometryDetectInfo(
DetectInfoCount = numberOfDrives;
- RtlZeroMemory(DetectInfoList, length);
-
//
// Copy the information out of the key data and into the list we've
// allocated.
@@ -660,7 +658,7 @@ Return Value:
RtlInitUnicodeString(&unicodeString, L"Identifier");
- keyData = ExAllocatePoolWithTag(PagedPool,
+ keyData = ExAllocatePool2(POOL_FLAG_PAGED,
VALUE_BUFFER_SIZE,
DISK_TAG_UPDATE_GEOM);
@@ -1140,7 +1138,7 @@ Routine Description:
PAGED_CODE();
- readBuffer = ExAllocatePoolWithTag(NonPagedPoolNx, FdoExtension->DiskGeometry.BytesPerSector, DISK_TAG_UPDATE_GEOM);
+ readBuffer = ExAllocatePool2(POOL_FLAG_NON_PAGED, FdoExtension->DiskGeometry.BytesPerSector, DISK_TAG_UPDATE_GEOM);
if (readBuffer)
{