]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-newtrans-lock-fix-fix-20081018
authorJeffrey Hutzelman <jhutz@cmu.edu>
Sat, 18 Oct 2008 20:26:17 +0000 (20:26 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 18 Oct 2008 20:26:17 +0000 (20:26 +0000)
LICENSE IPL10

swap in the freshly allocated memory instead of throwing it away

(cherry picked from commit 2767cbf773653bffaa63e098cce463ada804d6d7)

src/volser/voltrans.c

index 12219f771fef3b8793952a23e91aab3a64928abe..479195788e961781bb9c0cbed125965012112360 100644 (file)
@@ -89,7 +89,7 @@ NewTrans(afs_int32 avol, afs_int32 apart)
            return (struct volser_trans *)0;    /* volume busy */
        }
     }
-    newtt = tt;
+    tt = newtt;
     memset(tt, 0, sizeof(struct volser_trans));
     tt->volid = avol;
     tt->partition = apart;