svn commit: r275700 - head/sys/netinet6

Mark Johnston markj at FreeBSD.org
Thu Dec 11 09:16:47 UTC 2014


Author: markj
Date: Thu Dec 11 09:16:45 2014
New Revision: 275700
URL: https://svnweb.freebsd.org/changeset/base/275700

Log:
  Revert r275695: nd6_dad_find() was already correct.
  
  Reported by:	ae, kib
  Pointy hat to:	markj

Modified:
  head/sys/netinet6/nd6_nbr.c

Modified: head/sys/netinet6/nd6_nbr.c
==============================================================================
--- head/sys/netinet6/nd6_nbr.c	Thu Dec 11 08:05:59 2014	(r275699)
+++ head/sys/netinet6/nd6_nbr.c	Thu Dec 11 09:16:45 2014	(r275700)
@@ -1210,12 +1210,11 @@ nd6_dad_find(struct ifaddr *ifa)
 	TAILQ_FOREACH(dp, &V_dadq, dad_list)
 		if (dp->dad_ifa == ifa) {
 			refcount_acquire(&dp->dad_refcnt);
-			DADQ_RUNLOCK();
-			return (dp);
+			break;
 		}
 	DADQ_RUNLOCK();
 
-	return (NULL);
+	return (dp);
 }
 
 static void


More information about the svn-src-head mailing list