diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c index 5f9555274a60..25cd1748ab2c 100644 --- a/sys/net/if_loop.c +++ b/sys/net/if_loop.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_loop.c,v 1.91 2016/08/10 10:09:42 kre Exp $ */ +/* $NetBSD: if_loop.c,v 1.92 2016/08/11 13:57:02 kre Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -65,7 +65,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_loop.c,v 1.91 2016/08/10 10:09:42 kre Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_loop.c,v 1.92 2016/08/11 13:57:02 kre Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -154,6 +154,9 @@ void loopinit(void) { + if (lo0ifp != NULL) /* can happen in rump kernel */ + return; + (void)loop_clone_create(&loop_cloner, 0); /* lo0 always exists */ if_clone_attach(&loop_cloner); }