From owner-cvs-src-old@FreeBSD.ORG Mon Sep 14 16:13:27 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 968C21065740 for ; Mon, 14 Sep 2009 16:13:27 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 83F228FC14 for ; Mon, 14 Sep 2009 16:13:27 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n8EGDRqj032740 for ; Mon, 14 Sep 2009 16:13:27 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n8EGDRwO032739 for cvs-src-old@freebsd.org; Mon, 14 Sep 2009 16:13:27 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200909141613.n8EGDRwO032739@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Mon, 14 Sep 2009 16:13:12 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/dev/syscons/daemon daemon_saver.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Sep 2009 16:13:27 -0000 jhb 2009-09-14 16:13:12 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/dev/syscons/daemon daemon_saver.c Log: SVN rev 197194 on 2009-09-14 16:13:12Z by jhb MFC 197062: 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. Approved by: re (kib) Revision Changes Path 1.28.2.2 +15 -3 src/sys/dev/syscons/daemon/daemon_saver.c