]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-darwin80-mkdir-error-leak-fix-20060215
authorChaskiel M Grundman <cg2v@andrew.cmu.edu>
Wed, 15 Feb 2006 07:02:21 +0000 (07:02 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 15 Feb 2006 07:02:21 +0000 (07:02 +0000)
avoid a potential refcount decrement "leak" (well, the opposite, really) when a mkdir fails

(cherry picked from commit 33d58440d1fa3938ff627e888537c367d06b1bf9)

src/afs/DARWIN/osi_vnodeops.c

index d7c5d1d0c33c8112c433747832f165c25be672ff..e73c0a71169ea0b3f7bb19241329f7aff7e6c534 100644 (file)
@@ -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);
     }