mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Only initialize the if_sis callout as MPSAFE if debug.mpsafenet is set
true. Otherwise, assertion checks for Giant in the network stack will fail causing a panic. Reported by: simon
This commit is contained in:
parent
259fcfacc4
commit
baad32ada6
1 changed files with 4 additions and 1 deletions
|
|
@ -1234,7 +1234,10 @@ sis_attach(dev)
|
|||
}
|
||||
|
||||
sc->sis_unit = unit;
|
||||
callout_init(&sc->sis_stat_ch, CALLOUT_MPSAFE);
|
||||
if (debug_mpsafenet)
|
||||
callout_init(&sc->sis_stat_ch, CALLOUT_MPSAFE);
|
||||
else
|
||||
callout_init(&sc->sis_stat_ch, 0);
|
||||
bcopy(eaddr, (char *)&sc->arpcom.ac_enaddr, ETHER_ADDR_LEN);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue