Call bridge_span before dropping the lock.

MFC after:	5 days
This commit is contained in:
thompsa 2006-08-17 10:18:31 +00:00
parent 2e4762bd3c
commit 92c17ec7e1

View File

@ -1755,14 +1755,14 @@ bridge_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *sa,
struct mbuf *mc;
int error = 0, used = 0;
bridge_span(sc, m);
BRIDGE_LOCK2REF(sc, error);
if (error) {
m_freem(m);
return (0);
}
bridge_span(sc, m);
LIST_FOREACH(bif, &sc->sc_iflist, bif_next) {
dst_if = bif->bif_ifp;