Author: ae
Date: Mon Mar 20 08:16:05 2017
New Revision: 315625
URL: https://svnweb.freebsd.org/changeset/base/315625

Log:
  MFC r315192:
    Ignore ifnet renaming in the bpf ifnet departure handler.
  
    PR:         213015

Modified:
  stable/10/sys/net/bpf.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/net/bpf.c
==============================================================================
--- stable/10/sys/net/bpf.c     Mon Mar 20 08:10:58 2017        (r315624)
+++ stable/10/sys/net/bpf.c     Mon Mar 20 08:16:05 2017        (r315625)
@@ -2581,6 +2581,10 @@ bpf_ifdetach(void *arg __unused, struct 
        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.
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to