HomeFreeBSD

proc: use MTX_NEW flag in proc_init

Description

proc: use MTX_NEW flag in proc_init

This allows us to get rid of bzero which was added specifically to make
mtx_init on p_mtx reliable.

This also fixes a potential problem where mtx_init on other mutexes
could trip over on unitialized memory and fire an assertion.

Reviewed by: kib

Details

Provenance
mjgAuthored on
Parents
rS280331: cred: add proc_set_cred_init helper
Branches
Unknown
Tags
Unknown

Event Timeline