summaryrefslogtreecommitdiffstats
path: root/sys/dev/sbni
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-08-13 23:41:00 +0000
committerrwatson <rwatson@FreeBSD.org>2004-08-13 23:41:00 +0000
commit85f7f920723d4abe31da5696fba16a344e43cb47 (patch)
treebb93a5958a4936e1b3a7c84c6658ca527bdb77e7 /sys/dev/sbni
parent58dec551ba2cb24b56778e4af75fdf9f681efcd1 (diff)
downloadFreeBSD-src-85f7f920723d4abe31da5696fba16a344e43cb47.zip
FreeBSD-src-85f7f920723d4abe31da5696fba16a344e43cb47.tar.gz
Since if_sbni 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/sbni')
-rw-r--r--sys/dev/sbni/if_sbni.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sbni/if_sbni.c b/sys/dev/sbni/if_sbni.c
index dc4275b..27ebcae 100644
--- a/sys/dev/sbni/if_sbni.c
+++ b/sys/dev/sbni/if_sbni.c
@@ -240,7 +240,8 @@ sbni_attach(struct sbni_softc *sc, int unit, struct sbni_flags flags)
ifp->if_baudrate =
(csr0 & 0x01 ? 500000 : 2000000) / (1 << flags.rate);
- ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
+ ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST |
+ IFF_NEEDSGIANT;
ether_ifattach(ifp, sc->arpcom.ac_enaddr);
/* device attach does transition from UNCONFIGURED to IDLE state */
OpenPOWER on IntegriCloud