Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Feb 2012 18:47:08 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r231097 - stable/8/sys/netinet
Message-ID:  <201202061847.q16Il8Gw048911@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
+		}
 	}
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202061847.q16Il8Gw048911>