From 62280740d62e0e56f632c4e9c46457099b3435c8 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Mon, 19 Dec 2016 19:21:28 +0000 Subject: [PATCH] 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 --- sys/netinet6/nd6_rtr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c index f470f5200d51..a44a8b1f7409 100644 --- a/sys/netinet6/nd6_rtr.c +++ b/sys/netinet6/nd6_rtr.c @@ -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);