From: Peter Somogyi Date: Tue, 17 Jan 2006 05:00:21 +0000 (+0000) Subject: STABLE14-newvcache-can-fail-now-20060116 X-Git-Tag: openafs-stable-1_4_1-rc5~23 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=eb72bfe0b292e7cbc8597d022e5a3b74fff2c1fa;p=packages%2Fo%2Fopenafs.git STABLE14-newvcache-can-fail-now-20060116 FIXES 22260 allow newvcache to fail without ooping sort of nasty, if you want more vcaches, say so. (cherry picked from commit c19324c8574c66f18cd18f2df4beb486460205aa) --- diff --git a/src/afs/VNOPS/afs_vnop_lookup.c b/src/afs/VNOPS/afs_vnop_lookup.c index 1d988b0c6..6b772a9a1 100644 --- a/src/afs/VNOPS/afs_vnop_lookup.c +++ b/src/afs/VNOPS/afs_vnop_lookup.c @@ -723,8 +723,10 @@ afs_DoBulkStat(struct vcache *adp, long dirCookie, struct vrequest *areqp) } if (!tvcp) { + DRelease((struct buffer *)dirEntryp, 0); ReleaseReadLock(&dcp->lock); ReleaseReadLock(&adp->lock); + afs_PutDCache(dcp); goto done; /* can happen if afs_NewVCache fails */ }