diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-08-13 23:09:41 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-08-13 23:09:41 +0000 |
commit | b702c717f3619cb25d7640ca78141879a39c4370 (patch) | |
tree | 1b8250d6094f78d3322ae19ff5d01b7b38f1c8e8 /sys/dev/firewire | |
parent | 2ab0b531c9726ee4d6119f2274ac5656cdde8a05 (diff) | |
download | FreeBSD-src-b702c717f3619cb25d7640ca78141879a39c4370.zip FreeBSD-src-b702c717f3619cb25d7640ca78141879a39c4370.tar.gz |
Since if_fwip doesn't contain locking or run with INTR_MPSAFE, mark
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
Approved by: dfr
Diffstat (limited to 'sys/dev/firewire')
-rw-r--r-- | sys/dev/firewire/if_fwip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/firewire/if_fwip.c b/sys/dev/firewire/if_fwip.c index 874e3ec..2c11a25 100644 --- a/sys/dev/firewire/if_fwip.c +++ b/sys/dev/firewire/if_fwip.c @@ -209,7 +209,8 @@ fwip_attach(device_t dev) ifp->if_init = fwip_init; ifp->if_start = fwip_start; ifp->if_ioctl = fwip_ioctl; - ifp->if_flags = (IFF_BROADCAST|IFF_SIMPLEX|IFF_MULTICAST); + ifp->if_flags = (IFF_BROADCAST|IFF_SIMPLEX|IFF_MULTICAST| + IFF_NEEDSGIANT); ifp->if_snd.ifq_maxlen = TX_MAX_QUEUE; s = splimp(); |