From owner-svn-src-all@FreeBSD.ORG Mon Oct 20 18:56:01 2008 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 3D8C51065676; Mon, 20 Oct 2008 18:56:01 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2BDA68FC1E; Mon, 20 Oct 2008 18:56:01 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id m9KIu0Oq078530; Mon, 20 Oct 2008 18:56:00 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id m9KIu0JT078529; Mon, 20 Oct 2008 18:56:00 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <200810201856.m9KIu0JT078529@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Mon, 20 Oct 2008 18:56:00 +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: r184097 - head/sys/netinet 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, 20 Oct 2008 18:56:01 -0000 Author: bz Date: Mon Oct 20 18:56:00 2008 New Revision: 184097 URL: http://svn.freebsd.org/changeset/base/184097 Log: Update a comment which to my reading had been misplaced in rev. 1.12 already (but probably had been way above as the code was there twice) and describe what was last changed in rev. 1.199 there (which now is in sync with in6_src.c r184096). Pointed at by: mlaier MFC after: 2 mmonths Modified: head/sys/netinet/in_pcb.c Modified: head/sys/netinet/in_pcb.c ============================================================================== --- head/sys/netinet/in_pcb.c Mon Oct 20 18:43:59 2008 (r184096) +++ head/sys/netinet/in_pcb.c Mon Oct 20 18:56:00 2008 (r184097) @@ -458,8 +458,9 @@ in_pcbbind_setup(struct inpcb *inp, stru if (pcbinfo != &V_udbinfo) V_ipport_tcpallocs++; /* - * Simple check to ensure all ports are not used up causing - * a deadlock here. + * Instead of having two loops further down counting up or down + * make sure that first is always <= last and go with only one + * code path implementing all logic. */ if (first > last) { aux = first;