mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
sys/dev/xen/netfront/netfront.c:
In netif_free(), call ifmedia_removeall() after ether_ifdetach() so that bpf listeners are detached, any link state processing is completed, and there is no chance for external reference to media information. Suggested by: yongari MFC after: 1 week
This commit is contained in:
parent
86241d89a9
commit
d5aeb77948
1 changed files with 1 additions and 1 deletions
|
|
@ -2178,12 +2178,12 @@ netif_free(struct netfront_info *info)
|
|||
XN_UNLOCK(info);
|
||||
callout_drain(&info->xn_stat_ch);
|
||||
netif_disconnect_backend(info);
|
||||
ifmedia_removeall(&info->sc_media);
|
||||
if (info->xn_ifp != NULL) {
|
||||
ether_ifdetach(info->xn_ifp);
|
||||
if_free(info->xn_ifp);
|
||||
info->xn_ifp = NULL;
|
||||
}
|
||||
ifmedia_removeall(&info->sc_media);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in a new issue