Since if_cp doesn't contain locking or run with INTR_MPSAFE, mark
the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
This commit is contained in:
parent
bfa3f012cd
commit
c84843f1e5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133680
@ -508,7 +508,8 @@ static int cp_attach (device_t dev)
|
||||
d->pp.pp_if.if_name = "cp";
|
||||
#endif
|
||||
d->pp.pp_if.if_mtu = PP_MTU;
|
||||
d->pp.pp_if.if_flags = IFF_POINTOPOINT | IFF_MULTICAST;
|
||||
d->pp.pp_if.if_flags = IFF_POINTOPOINT | IFF_MULTICAST |
|
||||
IFF_NEEDSGIANT;
|
||||
d->pp.pp_if.if_ioctl = cp_sioctl;
|
||||
d->pp.pp_if.if_start = cp_ifstart;
|
||||
d->pp.pp_if.if_watchdog = cp_ifwatchdog;
|
||||
|
Loading…
Reference in New Issue
Block a user