Date: Tue, 25 Dec 2012 13:55:21 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r244680 - head/sys/netinet Message-ID: <201212251355.qBPDtLvL066667@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212251355.qBPDtLvL066667>