mirror of
https://github.com/reactos/reactos.git
synced 2026-06-05 03:02:59 +08:00
[FLTMGR] Properly allocate CCB in CreatePortCCB()
CID 1427031
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user