[FASTFAT]
authorThomas Faber <thomas.faber@reactos.org>
Sat, 4 Mar 2017 14:48:05 +0000 (14:48 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 4 Mar 2017 14:48:05 +0000 (14:48 +0000)
- Avoid use after free in vfatDestroyFCB

svn path=/trunk/; revision=74051

reactos/drivers/filesystems/fastfat/fcb.c

index f8bbab5..4a103b0 100644 (file)
@@ -273,8 +273,8 @@ vfatDestroyFCB(
     ExFreePool(pFCB->PathNameBuffer);
     ExDeleteResourceLite(&pFCB->PagingIoResource);
     ExDeleteResourceLite(&pFCB->MainResource);
-    ExFreeToNPagedLookasideList(&VfatGlobalData->FcbLookasideList, pFCB);
     ASSERT(IsListEmpty(&pFCB->ParentListHead));
+    ExFreeToNPagedLookasideList(&VfatGlobalData->FcbLookasideList, pFCB);
 }
 
 BOOLEAN