Date: Thu, 10 Sep 2009 12:58:37 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/syscons/daemon daemon_saver.c Message-ID: <200909101258.n8ACwsE7039338@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2009-09-10 12:58:37 UTC
FreeBSD src repository
Modified files:
sys/dev/syscons/daemon daemon_saver.c
Log:
SVN rev 197062 on 2009-09-10 12:58:37Z by jhb
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
Revision Changes Path
1.29 +15 -3 src/sys/dev/syscons/daemon/daemon_saver.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909101258.n8ACwsE7039338>
