When creating a new uidinfo structure, check for an allocation race whether
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 24 Jan 2004 07:55:50 +0000 (07:55 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 24 Jan 2004 07:55:50 +0000 (07:55 +0000)
commitf61e468ffd1459fb3923146c211c529c611e4fc7
treec5ca078681ad68855fe69428d3e333f2058527f7
parentb876f7acfabe933df458ee70b77fdee98e3bcfb9
When creating a new uidinfo structure, check for an allocation race whether
we were to malloc M_NOWAIT or M_WAITOK, which means we can just use M_WAITOK
unconditionally.
sys/kern/kern_resource.c