[FLTMGR] Properly allocate CCB in CreatePortCCB()

CID 1427031
This commit is contained in:
Pierre Schweitzer
2018-01-06 13:54:21 +01:00
parent f5d366b200
commit 48382d1448

View File

@@ -817,7 +817,7 @@ CreatePortCCB(_In_ PFLT_PORT_OBJECT PortObject)
PPORT_CCB PortCCB;
/* Allocate a CCB struct to hold the client port object info */
PortCCB = ExAllocatePoolWithTag(NonPagedPool, sizeof(PPORT_CCB), FM_TAG_CCB);
PortCCB = ExAllocatePoolWithTag(NonPagedPool, sizeof(PORT_CCB), FM_TAG_CCB);
if (PortCCB)
{
/* Initialize the structure */
@@ -828,4 +828,4 @@ CreatePortCCB(_In_ PFLT_PORT_OBJECT PortObject)
}
return PortCCB;
}
}