From: Mike Karels Date: Fri, 5 Sep 1986 02:35:31 +0000 (-0800) Subject: MCLALLOC must be called at splimp X-Git-Tag: BSD-4_3-Snapshot-Development~674 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/5c723b90ceb41c125105d2a818e372ee31f2e522 MCLALLOC must be called at splimp SCCS-vsn: sys/net/if_sl.c 7.2 --- diff --git a/usr/src/sys/net/if_sl.c b/usr/src/sys/net/if_sl.c index 5b93ee329f..aa73143f5a 100644 --- a/usr/src/sys/net/if_sl.c +++ b/usr/src/sys/net/if_sl.c @@ -1,4 +1,4 @@ -/* @(#)if_sl.c 7.1 (Berkeley) %G% */ +/* @(#)if_sl.c 7.2 (Berkeley) %G% */ /* * Serial Line interface @@ -351,7 +351,10 @@ slinit(sc) struct mbuf *p; if (sc->sc_buf == (char *) 0) { + int s = splimp(); + MCLALLOC(p, 1); + splx(s); if (p) { sc->sc_buf = (char *)p; sc->sc_mp = sc->sc_buf + sizeof(struct ifnet *);