summaryrefslogtreecommitdiffstats
path: root/sys/net/if_loop.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-01-29 13:21:34 +0000
committerpeter <peter@FreeBSD.org>2001-01-29 13:21:34 +0000
commit695e2716fdfbb7a4b3c7a07c6660c4f562fc1864 (patch)
tree79b69fcadc04b5509cc0de8aa6cb3e62f8a06c56 /sys/net/if_loop.c
parentd1890fe8f27bc712c5fa8cbd26b3b83e444c74be (diff)
downloadFreeBSD-src-695e2716fdfbb7a4b3c7a07c6660c4f562fc1864.zip
FreeBSD-src-695e2716fdfbb7a4b3c7a07c6660c4f562fc1864.tar.gz
Use M_PANIC instead of if (sc == NULL) panic();
Diffstat (limited to 'sys/net/if_loop.c')
-rw-r--r--sys/net/if_loop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c
index 105b8dd..20bad44 100644
--- a/sys/net/if_loop.c
+++ b/sys/net/if_loop.c
@@ -120,7 +120,8 @@ locreate(int unit)
{
struct lo_softc *sc;
- MALLOC(sc, struct lo_softc *, sizeof(*sc), M_LO, M_WAITOK | M_ZERO);
+ MALLOC(sc, struct lo_softc *, sizeof(*sc), M_LO,
+ M_WAITOK | M_ZERO | M_PANIC);
sc->sc_if.if_name = "lo";
sc->sc_if.if_unit = unit;
OpenPOWER on IntegriCloud