sys: refactor allocation routines and FspIopCreateRequestFunnel

This commit is contained in:
Bill Zissimopoulos
2016-02-23 15:06:27 -08:00
parent c00bf8c96a
commit c30fec9daf
3 changed files with 24 additions and 15 deletions

View File

@ -45,7 +45,7 @@ static const LONG Delays[] =
-1000,
};
PVOID FspAllocMustSucceed(SIZE_T Size)
PVOID FspAllocatePoolMustSucceed(POOL_TYPE PoolType, SIZE_T Size, ULONG Tag)
{
// !PAGED_CODE();
@ -54,7 +54,7 @@ PVOID FspAllocMustSucceed(SIZE_T Size)
for (ULONG i = 0, n = sizeof(Delays) / sizeof(Delays[0]);; i++)
{
Result = FspAlloc(Size);
Result = ExAllocatePoolWithTag(PoolType, Size, Tag);
if (0 != Result)
return Result;