From owner-svn-src-head@FreeBSD.ORG Sat Aug 29 18:01:02 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 733A91065670; Sat, 29 Aug 2009 18:01:02 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6293A8FC08; Sat, 29 Aug 2009 18:01:02 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n7TI12IM071028; Sat, 29 Aug 2009 18:01:02 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n7TI12fg071026; Sat, 29 Aug 2009 18:01:02 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <200908291801.n7TI12fg071026@svn.freebsd.org> From: Konstantin Belousov Date: Sat, 29 Aug 2009 18:01:02 +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: r196644 - 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: Sat, 29 Aug 2009 18:01:02 -0000 Author: kib Date: Sat Aug 29 18:01:02 2009 New Revision: 196644 URL: http://svn.freebsd.org/changeset/base/196644 Log: Dispose the kernel stack of the proper thread. Submitted by: alc MFC after: 1 week Modified: head/sys/kern/kern_fork.c Modified: head/sys/kern/kern_fork.c ============================================================================== --- head/sys/kern/kern_fork.c Sat Aug 29 16:01:21 2009 (r196643) +++ head/sys/kern/kern_fork.c Sat Aug 29 18:01:02 2009 (r196644) @@ -292,7 +292,7 @@ norfproc_fail: } else { if (td2->td_kstack == 0 || td2->td_kstack_pages != pages) { if (td2->td_kstack != 0) - vm_thread_dispose(td); + vm_thread_dispose(td2); if (!thread_alloc_stack(td2, pages)) { error = ENOMEM; goto fail1;