summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-09-10 12:58:37 +0000
committerjhb <jhb@FreeBSD.org>2009-09-10 12:58:37 +0000
commitcedb32d24aa57ad6f241ae194a01bd194a10e0d5 (patch)
treeebf45e94c89fac9c31d2246b25dea1f9f46b8072 /sys/compat
parentb9f96dd3c05dc496081fe2e9cf86821da07743bc (diff)
downloadFreeBSD-src-cedb32d24aa57ad6f241ae194a01bd194a10e0d5.zip
FreeBSD-src-cedb32d24aa57ad6f241ae194a01bd194a10e0d5.tar.gz
Don't malloc a buffer while holding the prison0 mutex. Instead, use a loop
where we figure out the hostname length under the lock, malloc the buffer with the lock dropped, then recheck the length under the lock and loop again if the buffer is now too small. Tested by: Norbert Koch nkoch demig de MFC after: 3 days
Diffstat (limited to 'sys/compat')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud