diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2008-09-02 02:50:52 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2008-09-02 02:50:52 +0000 |
commit | 840a563001e3febebae3b739172cd4253a390c23 (patch) | |
tree | 379b38a72df5969673efdb5cfa6722da1a6bd0a5 /sys/dev/bm/if_bm.c | |
parent | 3873494459c2b412e045f76e002581ab87c00846 (diff) | |
download | FreeBSD-src-840a563001e3febebae3b739172cd4253a390c23.zip FreeBSD-src-840a563001e3febebae3b739172cd4253a390c23.tar.gz |
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
Diffstat (limited to 'sys/dev/bm/if_bm.c')
-rw-r--r-- | sys/dev/bm/if_bm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/bm/if_bm.c b/sys/dev/bm/if_bm.c index eee01e0..9f881e6 100644 --- a/sys/dev/bm/if_bm.c +++ b/sys/dev/bm/if_bm.c @@ -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 |