sys: FspVolumeDelete: perform MmForceSectionClosed on open files

- this removes them from the Mm Standby List
This commit is contained in:
Bill Zissimopoulos
2016-11-02 18:27:38 -07:00
parent b56379b542
commit c665812d76
3 changed files with 28 additions and 5 deletions

View File

@ -590,7 +590,9 @@ NTSTATUS FspFsvolDeviceCopyContextByNameList(PDEVICE_OBJECT DeviceObject,
*PContextCount = 0;
ContextCount = RtlNumberGenericTableElementsAvl(&FsvolDeviceExtension->ContextByNameTable);
Contexts = FspAlloc(sizeof(PVOID) * ContextCount);
/* if ContextCount == 0 allocate an empty Context list */
Contexts = FspAlloc(sizeof(PVOID) * (0 != ContextCount ? ContextCount : 1));
if (0 == Contexts)
return STATUS_INSUFFICIENT_RESOURCES;