summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_generic.c
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-03-09 22:06:31 +0000
committeralfred <alfred@FreeBSD.org>2002-03-09 22:06:31 +0000
commit32b4a85d20db65d58c01d4f0978aa4b6109e7cc7 (patch)
tree1731f92c7986c712af247676cf9f6a5095231fcd /sys/kern/sys_generic.c
parentbea936f66b75992bb103cc88b6a4b2fdd2393d14 (diff)
downloadFreeBSD-src-32b4a85d20db65d58c01d4f0978aa4b6109e7cc7.zip
FreeBSD-src-32b4a85d20db65d58c01d4f0978aa4b6109e7cc7.tar.gz
Don't deref NULL mutex pointer when pipeclose()'ing a pipe that is not
fully instaniated. Revert the logic in pipeclose so that we don't have the entire function pretty much under a single if() statement, instead invert the test and just return if it fails. Submitted (in different form) by: bde Don't use pool mutexes for pipes. We can not use pool mutexes because we will need to grab the select lock while holding a pipe lock which is not allowed because you may not aquire additional mutexes when holding a pool mutex. Instead malloc(9) space for the mutex that is shared between the pipes.
Diffstat (limited to 'sys/kern/sys_generic.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud