summaryrefslogtreecommitdiffstats
path: root/sys/dev/hme
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-08-13 23:14:50 +0000
committerrwatson <rwatson@FreeBSD.org>2004-08-13 23:14:50 +0000
commit04cbaba6eb0f3dc570e58da3079c18ef81b91199 (patch)
treeab3ae60135aac2a6ae075e8d74cbc8c13624923e /sys/dev/hme
parentd12331cbbb51da035d603e9b04243a8b263c5b5e (diff)
downloadFreeBSD-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/dev/hme')
-rw-r--r--sys/dev/hme/if_hme.c3
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;
OpenPOWER on IntegriCloud