From owner-svn-src-all@FreeBSD.ORG Tue Dec 25 13:55:22 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 31C261A8; Tue, 25 Dec 2012 13:55:22 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 1430E8FC13; Tue, 25 Dec 2012 13:55:22 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qBPDtLxa066672; Tue, 25 Dec 2012 13:55:21 GMT (envelope-from glebius@svn.freebsd.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qBPDtLvL066667; Tue, 25 Dec 2012 13:55:21 GMT (envelope-from glebius@svn.freebsd.org) Message-Id: <201212251355.qBPDtLvL066667@svn.freebsd.org> From: Gleb Smirnoff Date: Tue, 25 Dec 2012 13:55:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r244680 - head/sys/netinet X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 25 Dec 2012 13:55:22 -0000 Author: glebius Date: Tue Dec 25 13:55:21 2012 New Revision: 244680 URL: http://svnweb.freebsd.org/changeset/base/244680 Log: Fix sysctl_handle_int() usage. Either arg1 or arg2 should be supplied, and arg2 doesn't pass size of arg1. Modified: head/sys/netinet/tcp_reass.c head/sys/netinet/tcp_syncache.c Modified: head/sys/netinet/tcp_reass.c ============================================================================== --- head/sys/netinet/tcp_reass.c Tue Dec 25 13:43:01 2012 (r244679) +++ head/sys/netinet/tcp_reass.c Tue Dec 25 13:55:21 2012 (r244680) @@ -160,7 +160,7 @@ tcp_reass_sysctl_qsize(SYSCTL_HANDLER_AR int qsize; qsize = uma_zone_get_cur(V_tcp_reass_zone); - return (sysctl_handle_int(oidp, &qsize, sizeof(qsize), req)); + return (sysctl_handle_int(oidp, &qsize, 0, req)); } int Modified: head/sys/netinet/tcp_syncache.c ============================================================================== --- head/sys/netinet/tcp_syncache.c Tue Dec 25 13:43:01 2012 (r244679) +++ head/sys/netinet/tcp_syncache.c Tue Dec 25 13:55:21 2012 (r244680) @@ -312,7 +312,7 @@ syncache_sysctl_count(SYSCTL_HANDLER_ARG int count; count = uma_zone_get_cur(V_tcp_syncache.zone); - return (sysctl_handle_int(oidp, &count, sizeof(count), req)); + return (sysctl_handle_int(oidp, &count, 0, req)); } /*