diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-08-13 23:18:01 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-08-13 23:18:01 +0000 |
commit | 7e9810d11ed3b2c2b1271ec7f5c39fca83efeec7 (patch) | |
tree | f26d6063913266a1442971b4440b8ff61f3883cb /sys/dev/lge | |
parent | 9878d4a745cd6f1cda39f303f708c55e74174f4c (diff) | |
download | FreeBSD-src-7e9810d11ed3b2c2b1271ec7f5c39fca83efeec7.zip FreeBSD-src-7e9810d11ed3b2c2b1271ec7f5c39fca83efeec7.tar.gz |
Since if_lge 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/lge')
-rw-r--r-- | sys/dev/lge/if_lge.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/lge/if_lge.c b/sys/dev/lge/if_lge.c index 16a702a..f26d452 100644 --- a/sys/dev/lge/if_lge.c +++ b/sys/dev/lge/if_lge.c @@ -556,7 +556,8 @@ lge_attach(dev) ifp->if_softc = sc; if_initname(ifp, device_get_name(dev), device_get_unit(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_ioctl = lge_ioctl; ifp->if_start = lge_start; ifp->if_watchdog = lge_watchdog; |