Author: pschweitzer
Date: Sat Jun 21 06:20:48 2008
New Revision: 34041
URL:
http://svn.reactos.org/svn/reactos?rev=34041&view=rev
Log:
Ext2 and NTFS:
- Remove FCB from the linked list when it's released
NTFS:
- Check we have a FCB before releasing it
Modified:
trunk/reactos/drivers/filesystems/ext2/src/misc.c
trunk/reactos/drivers/filesystems/ntfs/fcb.c
Modified: trunk/reactos/drivers/filesystems/ext2/src/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
==============================================================================
--- trunk/reactos/drivers/filesystems/ext2/src/misc.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ext2/src/misc.c [iso-8859-1] Sat Jun 21 06:20:48
2008
@@ -895,6 +895,8 @@
ExDeleteResourceLite( &PtrFCB->NTRequiredFCB.MainResource );
ExDeleteResourceLite( &PtrFCB->NTRequiredFCB.PagingIoResource );
+ RemoveEntryList(&(PtrFCB->NextFCB));
+
if( PtrFCB->FCBName )
{
Ext2ReleaseObjectName( PtrFCB->FCBName );
Modified: trunk/reactos/drivers/filesystems/ntfs/fcb.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/fcb.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/fcb.c [iso-8859-1] Sat Jun 21 06:20:48 2008
@@ -109,7 +109,12 @@
VOID
NtfsDestroyFCB(PNTFS_FCB Fcb)
{
+ ASSERT(Fcb);
+ ASSERT(Fcb->Identifier.Type == NTFS_TYPE_FCB);
+
ExDeleteResourceLite(&Fcb->MainResource);
+
+ RemoveEntryList(&(Fcb->FcbListEntry));
ExFreePool(Fcb);
}