diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-08-13 22:52:11 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-08-13 22:52:11 +0000 |
commit | f9261894f41388807f5f3d1b23be2cdc1eea7e04 (patch) | |
tree | c224b80c3d3bc81c4f04f224d40391a4c22ac067 /sys/dev | |
parent | f57f7a321221577a26b739817e8ce772840957b6 (diff) | |
download | FreeBSD-src-f9261894f41388807f5f3d1b23be2cdc1eea7e04.zip FreeBSD-src-f9261894f41388807f5f3d1b23be2cdc1eea7e04.tar.gz |
As the if_ar driver doesn't contain locking or run its interrupt
MPSAFE, mark it as IFF_NEEDSGIANT so that its if_start routine is
run holding Giant.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ar/if_ar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ar/if_ar.c b/sys/dev/ar/if_ar.c index 0b98b7a..7777e89 100644 --- a/sys/dev/ar/if_ar.c +++ b/sys/dev/ar/if_ar.c @@ -293,7 +293,8 @@ ar_attach(device_t device) if_initname(ifp, device_get_name(device), device_get_unit(device)); ifp->if_mtu = PP_MTU; - ifp->if_flags = IFF_POINTOPOINT | IFF_MULTICAST; + ifp->if_flags = IFF_POINTOPOINT | IFF_MULTICAST | + IFF_NEEDSGIANT; ifp->if_ioctl = arioctl; ifp->if_start = arstart; ifp->if_watchdog = arwatchdog; |