Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jan 2012 23:05:15 +0400
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        Navdeep Parhar <np@FreeBSD.org>
Cc:        svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org
Subject:   Re: svn commit: r229714 - head/sys/netinet
Message-ID:  <20120106190515.GU34721@FreeBSD.org>
In-Reply-To: <201201061829.q06ITfP0001841@svn.freebsd.org>
References:  <201201061829.q06ITfP0001841@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
  Navdeep,

On Fri, Jan 06, 2012 at 06:29:41PM +0000, Navdeep Parhar wrote:
N> Author: np
N> Date: Fri Jan  6 18:29:40 2012
N> New Revision: 229714
N> URL: http://svn.freebsd.org/changeset/base/229714
N> 
N> Log:
N>   Always release the inp lock before returning from tcp_detach.
				 ^ after ?

N> Modified:
N>   head/sys/netinet/tcp_usrreq.c
N> 
N> Modified: head/sys/netinet/tcp_usrreq.c
N> ==============================================================================
N> --- head/sys/netinet/tcp_usrreq.c	Fri Jan  6 18:18:25 2012	(r229713)
N> +++ head/sys/netinet/tcp_usrreq.c	Fri Jan  6 18:29:40 2012	(r229714)
N> @@ -204,8 +204,10 @@ tcp_detach(struct socket *so, struct inp
N>  			tcp_discardcb(tp);
N>  			in_pcbdetach(inp);
N>  			in_pcbfree(inp);
N> -		} else
N> +		} else {
N>  			in_pcbdetach(inp);
N> +			INP_WUNLOCK(inp);
N> +		}
N>  	}
N>  }
N>  

-- 
Totus tuus, Glebius.



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