svn commit: r295732 - head/sys/netinet6

Mark Johnston markj at FreeBSD.org
Thu Feb 18 00:00:53 UTC 2016


Author: markj
Date: Thu Feb 18 00:00:51 2016
New Revision: 295732
URL: https://svnweb.freebsd.org/changeset/base/295732

Log:
  Release the ref acquired in nd6_dad_find() if DAD is already in progress.
  
  MFC after:	1 week

Modified:
  head/sys/netinet6/nd6_nbr.c

Modified: head/sys/netinet6/nd6_nbr.c
==============================================================================
--- head/sys/netinet6/nd6_nbr.c	Thu Feb 18 00:00:36 2016	(r295731)
+++ head/sys/netinet6/nd6_nbr.c	Thu Feb 18 00:00:51 2016	(r295732)
@@ -1262,9 +1262,10 @@ nd6_dad_start(struct ifaddr *ifa, int de
 	}
 	if ((dp = nd6_dad_find(ifa, NULL)) != NULL) {
 		/*
-		 * DAD already in progress.  Let the existing entry
-		 * to finish it.
+		 * DAD is already in progress.  Let the existing entry
+		 * finish it.
 		 */
+		nd6_dad_rele(dp);
 		return;
 	}
 


More information about the svn-src-head mailing list