Author: pschweitzer
Date: Sat Feb 4 17:54:38 2017
New Revision: 73679
URL:
http://svn.reactos.org/svn/reactos?rev=73679&view=rev
Log:
[FASTFAT]
In vfatMakeFCBFromDirEntry(), handle vfatFCBInitializeCacheFromVolume() failure
Modified:
trunk/reactos/drivers/filesystems/fastfat/fcb.c
Modified: trunk/reactos/drivers/filesystems/fastfat/fcb.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/fcb.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/fcb.c [iso-8859-1] Sat Feb 4 17:54:38 2017
@@ -728,7 +728,13 @@
rcFCB->RefCount = 1;
if (vfatFCBIsDirectory(rcFCB))
{
- vfatFCBInitializeCacheFromVolume(vcb, rcFCB);
+ Status = vfatFCBInitializeCacheFromVolume(vcb, rcFCB);
+ if (!NT_SUCCESS(Status))
+ {
+ vfatReleaseFCB(vcb, rcFCB);
+ ExFreePool(NameU.Buffer);
+ return Status;
+ }
}
rcFCB->parentFcb = directoryFCB;
InsertTailList(&directoryFCB->ParentListHead,
&rcFCB->ParentListEntry);