mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-26 16:18:31 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251729
@ -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 New Issue
Block a user