summaryrefslogtreecommitdiffstats
path: root/sys/net/if_loop.c
diff options
context:
space:
mode:
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