diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-08-13 23:14:50 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-08-13 23:14:50 +0000 |
commit | 04cbaba6eb0f3dc570e58da3079c18ef81b91199 (patch) | |
tree | ab3ae60135aac2a6ae075e8d74cbc8c13624923e /sys | |
parent | d12331cbbb51da035d603e9b04243a8b263c5b5e (diff) | |
download | FreeBSD-src-04cbaba6eb0f3dc570e58da3079c18ef81b91199.zip FreeBSD-src-04cbaba6eb0f3dc570e58da3079c18ef81b91199.tar.gz |
Since if_hme doesn't contain locking or run with INTR_MPSAFE, mark
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/hme/if_hme.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/hme/if_hme.c b/sys/dev/hme/if_hme.c index 99d3c08..2720e58 100644 --- a/sys/dev/hme/if_hme.c +++ b/sys/dev/hme/if_hme.c @@ -284,7 +284,8 @@ hme_config(struct hme_softc *sc) if_initname(ifp, device_get_name(sc->sc_dev), device_get_unit(sc->sc_dev)); ifp->if_mtu = ETHERMTU; - ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; + ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST | + IFF_NEEDSGIANT; ifp->if_start = hme_start; ifp->if_ioctl = hme_ioctl; ifp->if_init = hme_init; |