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:
Robert Watson 2004-05-23 22:22:29 +00:00
parent 259fcfacc4
commit baad32ada6

View File

@ -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);
/*