FreeBSD/patches/D20869.patch
2020-02-25 11:28:31 -08:00

16 lines
367 B
Diff

Index: sys/net/if.c
===================================================================
--- sys/net/if.c
+++ sys/net/if.c
@@ -1309,6 +1309,10 @@
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.
*/