Fix a multiple locking bug in bm(4) that could cause panics on a WITNESS-enabled kernel.

Approved by:	marcel (mentor)
MFC after:	1 day
This commit is contained in:
nwhitehorn 2008-09-02 02:50:52 +00:00
parent 3873494459
commit 840a563001

View File

@ -689,7 +689,7 @@ bm_dummypacket(struct bm_softc *sc)
mtod(m, unsigned char *)[16] = 0xE3;
m->m_len = m->m_pkthdr.len = sizeof(struct ether_header) + 3;
IF_ENQUEUE(&ifp->if_snd, m);
bm_start(ifp);
bm_start_locked(ifp);
}
static void