]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
proc: use MTX_NEW flag in proc_init
authormjg <mjg@FreeBSD.org>
Sat, 21 Mar 2015 20:25:34 +0000 (20:25 +0000)
committermjg <mjg@FreeBSD.org>
Sat, 21 Mar 2015 20:25:34 +0000 (20:25 +0000)
commit818b12be14c8d55773d6b72bc69805f69e685803
tree1d1107be7db16d870ba0087c618ddde51906a37c
parentb6e838d488e059efc84b230c7acae9bfd1af4d5f
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
sys/kern/kern_proc.c