Release the cache segment if the reading of it fails (in CcMapData).

svn path=/trunk/; revision=3598
This commit is contained in:
Hartmut Birr 2002-10-02 19:23:42 +00:00
parent 68d5450c51
commit 9f97892ffa

View file

@ -1,4 +1,4 @@
/* $Id: pin.c,v 1.7 2002/09/08 10:23:16 chorns Exp $ /* $Id: pin.c,v 1.8 2002/10/02 19:23:42 hbirr Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -85,6 +85,7 @@ CcMapData (IN PFILE_OBJECT FileObject,
} }
if (!NT_SUCCESS(ReadCacheSegment(CacheSeg))) if (!NT_SUCCESS(ReadCacheSegment(CacheSeg)))
{ {
CcRosReleaseCacheSegment(Bcb, CacheSeg, FALSE, FALSE, FALSE);
return(FALSE); return(FALSE);
} }
} }