diff --git a/sys/net/if.c b/sys/net/if.c index d1513d2a32d..aaa09f06681 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1309,6 +1358,10 @@ if_vmove(struct ifnet *ifp, struct vnet *new_vnet) if (ifp->if_reassign != NULL) ifp->if_reassign(ifp, new_vnet, NULL); + /* Don't re-attach DYING interfaces. */ + if (ifp->if_flags & IFF_DYING) + return; + /* * Switch to the context of the target vnet. */