svn commit: r215928 - stable/8/sys/netinet

Lawrence Stewart lstewart at FreeBSD.org
Sat Nov 27 03:23:42 UTC 2010


Author: lstewart
Date: Sat Nov 27 03:23:40 2010
New Revision: 215928
URL: http://svn.freebsd.org/changeset/base/215928

Log:
  MFC r215553:
  
  Fix a minor code redundancy nit.

Modified:
  stable/8/sys/netinet/siftr.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/netinet/siftr.c
==============================================================================
--- stable/8/sys/netinet/siftr.c	Sat Nov 27 03:19:59 2010	(r215927)
+++ stable/8/sys/netinet/siftr.c	Sat Nov 27 03:23:40 2010	(r215928)
@@ -736,14 +736,12 @@ siftr_findinpcb(int ipver, struct ip *ip
 			ss->nskip_in_inpcb++;
 		else
 			ss->nskip_out_inpcb++;
-
-		INP_INFO_RUNLOCK(&V_tcbinfo);
 	} else {
 		/* Acquire the inpcb lock. */
 		INP_UNLOCK_ASSERT(inp);
 		INP_RLOCK(inp);
-		INP_INFO_RUNLOCK(&V_tcbinfo);
 	}
+	INP_INFO_RUNLOCK(&V_tcbinfo);
 
 	return (inp);
 }


More information about the svn-src-all mailing list