1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

Call bridge_span before dropping the lock.

MFC after:	5 days
This commit is contained in:
Andrew Thompson 2006-08-17 10:18:31 +00:00
parent c632e9d3cc
commit b34b8d6783
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161401

View File

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