diff options
author | dg <dg@FreeBSD.org> | 1995-06-21 09:11:22 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-06-21 09:11:22 +0000 |
commit | bc8af5206c12b1c5621b30d4cf1430aa3fbeed36 (patch) | |
tree | bbba4e3cfaf7b5961f5c05fbc300b2b70a8beca1 /sys/net | |
parent | d78e91c98de39278879da7aecfdcb77ca3f9c889 (diff) | |
download | FreeBSD-src-bc8af5206c12b1c5621b30d4cf1430aa3fbeed36.zip FreeBSD-src-bc8af5206c12b1c5621b30d4cf1430aa3fbeed36.tar.gz |
Protect the call to if_up() with an splnet().
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_sl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c index e5196d7..550ee5e 100644 --- a/sys/net/if_sl.c +++ b/sys/net/if_sl.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)if_sl.c 8.6 (Berkeley) 2/1/94 - * $Id: if_sl.c,v 1.20 1995/05/30 08:08:11 rgrimes Exp $ + * $Id: if_sl.c,v 1.21 1995/06/21 08:48:19 davidg Exp $ */ /* @@ -258,7 +258,7 @@ slopen(dev, tp) struct proc *p = curproc; /* XXX */ register struct sl_softc *sc; register int nsl; - int error; + int s, error; error = suser(p->p_ucred, &p->p_acflag); if (error) @@ -293,7 +293,9 @@ slopen(dev, tp) sc->sc_if.if_mtu + SLIP_HIWAT); clist_alloc_cblocks(&tp->t_rawq, 0, 0); + s = splnet(); if_up(&sc->sc_if); + splx(s); return (0); } return (ENXIO); |