Ignore ifnet renaming in the bpf ifnet departure handler.

PR:		213015
MFC after:	1 week
This commit is contained in:
ae 2017-03-13 09:04:10 +00:00
parent a0bc5f59cc
commit 84935b56a6

View File

@ -2678,6 +2678,10 @@ bpf_ifdetach(void *arg __unused, struct ifnet *ifp)
struct bpf_if *bp, *bp_temp;
int nmatched = 0;
/* Ignore ifnet renaming. */
if (ifp->if_flags & IFF_RENAMING)
return;
BPF_LOCK();
/*
* Find matching entries in free list.