From owner-svn-src-all@FreeBSD.ORG Mon Jun 21 09:51:25 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B856E106566B; Mon, 21 Jun 2010 09:51:25 +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 A809D8FC16; Mon, 21 Jun 2010 09:51:25 +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 o5L9pPjN086442; Mon, 21 Jun 2010 09:51:25 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o5L9pP7g086440; Mon, 21 Jun 2010 09:51:25 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201006210951.o5L9pP7g086440@svn.freebsd.org> From: Konstantin Belousov Date: Mon, 21 Jun 2010 09:51:25 +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: r209389 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jun 2010 09:51:25 -0000 Author: kib Date: Mon Jun 21 09:51:25 2010 New Revision: 209389 URL: http://svn.freebsd.org/changeset/base/209389 Log: Do not report a stack garbage as the old value for debug.ncores sysctl. Reported by: brucec Modified: head/sys/kern/kern_sig.c Modified: head/sys/kern/kern_sig.c ============================================================================== --- head/sys/kern/kern_sig.c Mon Jun 21 08:24:50 2010 (r209388) +++ head/sys/kern/kern_sig.c Mon Jun 21 09:51:25 2010 (r209389) @@ -2953,7 +2953,8 @@ sysctl_debug_num_cores_check (SYSCTL_HAN { int error; int new_val; - + + new_val = num_cores; error = sysctl_handle_int(oidp, &new_val, 0, req); if (error != 0 || req->newptr == NULL) return (error);