CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2009/06/12 08:56:21
Modified files:
sys/kern : subr_pool.c
Log message:
rework pool_get() a bit so that if you call if with a constructor set
*and* PR_ZERO in flags, you will no longer zero our your nicely
constructed object.
Instead, now if you have a contructor set, and you set PR_ZERO, you will
panic (it's invalid due to how constructor work).
ok miod@ deraadt@ on earlier versions of the diff. ok tedu@ after he
pointed out a couple of places I messed up.
Problem initally noticed by ariane@ a while ago.