From owner-svn-src-stable-8@FreeBSD.ORG Mon Feb 6 18:47:08 2012 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85771106567B; Mon, 6 Feb 2012 18:47:08 +0000 (UTC) (envelope-from np@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 73C7D8FC19; Mon, 6 Feb 2012 18:47:08 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q16Il8w7048913; Mon, 6 Feb 2012 18:47:08 GMT (envelope-from np@svn.freebsd.org) Received: (from np@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q16Il8Gw048911; Mon, 6 Feb 2012 18:47:08 GMT (envelope-from np@svn.freebsd.org) Message-Id: <201202061847.q16Il8Gw048911@svn.freebsd.org> From: Navdeep Parhar Date: Mon, 6 Feb 2012 18:47:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r231097 - stable/8/sys/netinet X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Feb 2012 18:47:08 -0000 Author: np Date: Mon Feb 6 18:47:07 2012 New Revision: 231097 URL: http://svn.freebsd.org/changeset/base/231097 Log: MFC r229714 Always release the inp lock before returning from tcp_detach. Modified: stable/8/sys/netinet/tcp_usrreq.c Directory Properties: stable/8/sys/ (props changed) Modified: stable/8/sys/netinet/tcp_usrreq.c ============================================================================== --- stable/8/sys/netinet/tcp_usrreq.c Mon Feb 6 18:46:49 2012 (r231096) +++ stable/8/sys/netinet/tcp_usrreq.c Mon Feb 6 18:47:07 2012 (r231097) @@ -202,8 +202,10 @@ tcp_detach(struct socket *so, struct inp tcp_discardcb(tp); in_pcbdetach(inp); in_pcbfree(inp); - } else + } else { in_pcbdetach(inp); + INP_WUNLOCK(inp); + } } }