diff options
| author | dwimmel-msft <[email protected]> | 2022-05-04 11:03:57 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-04 11:03:57 -0700 |
| commit | a423bafcdcf7a58de7d3abd284f6107e4cce329f (patch) | |
| tree | a5fd33f061d96ad3151270816f4dcb4f3d86476c /storage/class/disk/src/enum.c | |
| parent | 30f39e4a535b0b4bc7215fdeee6b6d3a0659a797 (diff) | |
[storage/class/disk] Use ExAllocatePool2 (#712)
Diffstat (limited to 'storage/class/disk/src/enum.c')
| -rw-r--r-- | storage/class/disk/src/enum.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/storage/class/disk/src/enum.c b/storage/class/disk/src/enum.c index d5521caf..9ca58008 100644 --- a/storage/class/disk/src/enum.c +++ b/storage/class/disk/src/enum.c @@ -82,8 +82,8 @@ DiskConvertExtendedToLayout( return NULL; } - Layout = ExAllocatePoolWithTag ( - NonPagedPoolNx, + Layout = ExAllocatePool2 ( + POOL_FLAG_NON_PAGED, LayoutSize, DISK_TAG_PART_LIST ); @@ -214,8 +214,8 @@ Return Values: return NULL; } - layoutEx = ExAllocatePoolWithTag( - NonPagedPoolNx, + layoutEx = ExAllocatePool2( + POOL_FLAG_NON_PAGED, size, DISK_TAG_PART_LIST ); @@ -342,14 +342,12 @@ Return Value: partitionListSize = FIELD_OFFSET(DRIVE_LAYOUT_INFORMATION_EX, PartitionEntry[1]); - partitionList = ExAllocatePoolWithTag(NonPagedPoolNx, + partitionList = ExAllocatePool2(POOL_FLAG_NON_PAGED, partitionListSize, DISK_TAG_PART_LIST); if (partitionList != NULL) { - RtlZeroMemory( partitionList, partitionListSize ); - // // Set the partition count to one and the status to success // so one device object will be created. Set the partition type |
