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
@ -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…
x
Reference in New Issue
Block a user