From: Chaskiel M Grundman Date: Wed, 15 Feb 2006 07:02:21 +0000 (+0000) Subject: STABLE14-darwin80-mkdir-error-leak-fix-20060215 X-Git-Tag: openafs-stable-1_4_1-rc8~16 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d71224dabc121962765ef7c847f41018ab34e1f2;p=packages%2Fo%2Fopenafs.git STABLE14-darwin80-mkdir-error-leak-fix-20060215 avoid a potential refcount decrement "leak" (well, the opposite, really) when a mkdir fails (cherry picked from commit 33d58440d1fa3938ff627e888537c367d06b1bf9) --- diff --git a/src/afs/DARWIN/osi_vnodeops.c b/src/afs/DARWIN/osi_vnodeops.c index d7c5d1d0c..e73c0a711 100644 --- a/src/afs/DARWIN/osi_vnodeops.c +++ b/src/afs/DARWIN/osi_vnodeops.c @@ -1430,8 +1430,10 @@ afs_vop_mkdir(ap) error = afs_mkdir(VTOAFS(dvp), name, vap, &vcp, vop_cn_cred); AFS_GUNLOCK(); if (error) { +#ifndef AFS_DARWIN80_ENV VOP_ABORTOP(dvp, cnp); vput(dvp); +#endif DROPNAME(); return (error); }