newtrans-lock-fix-fix-20081018
authorJeffrey Hutzelman <jhutz@cmu.edu>
Sat, 18 Oct 2008 20:25:56 +0000 (20:25 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 18 Oct 2008 20:25:56 +0000 (20:25 +0000)
LICENSE IPL10

swap in the freshly allocated memory instead of throwing it away

src/volser/voltrans.c

index 610e75b..094485b 100644 (file)
@@ -88,7 +88,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;