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
1144352c64
commit
2bb6d0aef6
@ -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…
x
Reference in New Issue
Block a user