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));
 }
 
 /*
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to