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
This commit is contained in:
Mark Johnston 2016-12-19 19:21:28 +00:00
parent 32920cbfa3
commit 62280740d6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=310286

View File

@ -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);