Author: markj
Date: Mon Dec 19 19:21:28 2016
New Revision: 310286
URL: https://svnweb.freebsd.org/changeset/base/310286

Log:
  Remove a bogus KASSERT from nd6_prefix_unlink().
  
  The caller may unlink a prefix before purging referencing addresses. An
  identical assertion in nd6_prefix_del() verifies that the addresses are
  purged before the prefix is freed.
  
  PR:           215372
  X-MFC With:   r306829

Modified:
  head/sys/netinet6/nd6_rtr.c

Modified: head/sys/netinet6/nd6_rtr.c
==============================================================================
--- head/sys/netinet6/nd6_rtr.c Mon Dec 19 19:00:03 2016        (r310285)
+++ head/sys/netinet6/nd6_rtr.c Mon Dec 19 19:21:28 2016        (r310286)
@@ -1122,8 +1122,6 @@ void
 nd6_prefix_unlink(struct nd_prefix *pr, struct nd_prhead *list)
 {
 
-       KASSERT(pr->ndpr_addrcnt == 0,
-           ("prefix %p has referencing addresses", pr));
        ND6_WLOCK_ASSERT();
 
        LIST_REMOVE(pr, ndpr_entry);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to