diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-08-13 23:41:00 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-08-13 23:41:00 +0000 |
commit | 85f7f920723d4abe31da5696fba16a344e43cb47 (patch) | |
tree | bb93a5958a4936e1b3a7c84c6658ca527bdb77e7 /sys/dev/sbni | |
parent | 58dec551ba2cb24b56778e4af75fdf9f681efcd1 (diff) | |
download | FreeBSD-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.c | 3 |
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 */ |