newtrans-lock-fix-fix-20081018

LICENSE IPL10

swap in the freshly allocated memory instead of throwing it away
This commit is contained in:
Jeffrey Hutzelman 2008-10-18 20:25:56 +00:00 committed by Derrick Brashear
parent f9191fdebc
commit 2767cbf773

View 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;