diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-08-13 23:16:44 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-08-13 23:16:44 +0000 |
commit | 9878d4a745cd6f1cda39f303f708c55e74174f4c (patch) | |
tree | 61093a1e39c3e0d5f8b5fed8ef0cddaeff28dbfb /sys/dev | |
parent | 1087b18ddfa7aea702ac2d14b3a305744b42e477 (diff) | |
download | FreeBSD-src-9878d4a745cd6f1cda39f303f708c55e74174f4c.zip FreeBSD-src-9878d4a745cd6f1cda39f303f708c55e74174f4c.tar.gz |
Since if_ic 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')
-rw-r--r-- | sys/dev/iicbus/if_ic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/iicbus/if_ic.c b/sys/dev/iicbus/if_ic.c index e712b9b..1979cf1 100644 --- a/sys/dev/iicbus/if_ic.c +++ b/sys/dev/iicbus/if_ic.c @@ -136,7 +136,8 @@ icattach(device_t dev) ifp->if_softc = sc; if_initname(ifp, device_get_name(dev), device_get_unit(dev)); ifp->if_mtu = ICMTU; - ifp->if_flags = IFF_SIMPLEX | IFF_POINTOPOINT | IFF_MULTICAST; + ifp->if_flags = IFF_SIMPLEX | IFF_POINTOPOINT | IFF_MULTICAST | + IFF_NEEDSGIANT; ifp->if_ioctl = icioctl; ifp->if_output = icoutput; ifp->if_type = IFT_PARA; |