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:
parent
6a40eccec3
commit
f21fc12736
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=84782
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user