Add a temporary hack that will go away with the ucred API update to bzero

the duplicated mutex before initializing it to avoid triggering the check
for init'ing an already initialized mutex.
This commit is contained in:
John Baldwin 2001-10-10 20:45:40 +00:00
parent 6a40eccec3
commit f21fc12736
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=84782

View File

@ -1671,6 +1671,7 @@ crdup(cr)
MALLOC(newcr, struct ucred *, sizeof(*cr), M_CRED, M_WAITOK);
*newcr = *cr;
bzero(&newcr->cr_mtx, sizeof(newcr->cr_mtx));
mtx_init(&newcr->cr_mtx, "ucred", MTX_DEF);
uihold(newcr->cr_uidinfo);
uihold(newcr->cr_ruidinfo);