For now, restore an splx(s) I removed when introducing slisunitfree().

This commit is contained in:
Robert Watson 2004-04-01 23:54:49 +00:00
parent f853699a55
commit 445a8f0348

View file

@ -469,8 +469,10 @@ sltioctl(tp, cmd, data, flag, td)
return (ENXIO);
}
if (sc->sc_if.if_dunit != unit) {
if (!slisunitfree(unit))
if (!slisunitfree(unit)) {
splx(s);
return (ENXIO);
}
wasup = sc->sc_if.if_flags & IFF_UP;
bpfdetach(&sc->sc_if);