From owner-svn-src-head@FreeBSD.ORG Tue May 26 18:33:36 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDFAD106567C; Tue, 26 May 2009 18:33:36 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id CCC148FC25; Tue, 26 May 2009 18:33:36 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n4QIXaFW068420; Tue, 26 May 2009 18:33:36 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n4QIXaUG068419; Tue, 26 May 2009 18:33:36 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <200905261833.n4QIXaUG068419@svn.freebsd.org> From: Ed Schouten Date: Tue, 26 May 2009 18:33:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r192827 - head/sys/kern X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 May 2009 18:33:38 -0000 Author: ed Date: Tue May 26 18:33:36 2009 New Revision: 192827 URL: http://svn.freebsd.org/changeset/base/192827 Log: Get rid of M_TEMP. Modified: head/sys/kern/tty.c Modified: head/sys/kern/tty.c ============================================================================== --- head/sys/kern/tty.c Tue May 26 18:30:17 2009 (r192826) +++ head/sys/kern/tty.c Tue May 26 18:33:36 2009 (r192827) @@ -1069,7 +1069,7 @@ sysctl_kern_ttys(SYSCTL_HANDLER_ARGS) return (0); } - xtlist = xt = malloc(lsize, M_TEMP, M_WAITOK); + xtlist = xt = malloc(lsize, M_TTY, M_WAITOK); TAILQ_FOREACH(tp, &tty_list, t_list) { tty_lock(tp); @@ -1080,7 +1080,7 @@ sysctl_kern_ttys(SYSCTL_HANDLER_ARGS) sx_sunlock(&tty_list_sx); error = SYSCTL_OUT(req, xtlist, lsize); - free(xtlist, M_TEMP); + free(xtlist, M_TTY); return (error); }