Move ifq drain into in6m_purge().

Suggested by:	bms
MFC after:	1 week
Sponsored by:	Yandex LLC
This commit is contained in:
Andrey V. Elsukov 2014-10-30 11:34:07 +00:00
parent 903fb143cf
commit 3c268b3afc

View file

@ -526,9 +526,6 @@ in6m_release_locked(struct in6_multi *inm)
in6m_purge(inm);
/* Free state-change requests that might be queued. */
_IF_DRAIN(&inm->in6m_scq);
free(inm, M_IP6MADDR);
if_delmulti_ifma(ifma);
@ -1076,6 +1073,8 @@ in6m_purge(struct in6_multi *inm)
free(ims, M_IP6MSOURCE);
inm->in6m_nsrc--;
}
/* Free state-change requests that might be queued. */
_IF_DRAIN(&inm->in6m_scq);
}
/*