Author: mmacy
Date: Mon Jul 27 01:17:59 2020
New Revision: 363590
URL: https://svnweb.freebsd.org/changeset/base/363590

Log:
  iflib: fix LOR with bpf detach
  
  Reported by:  grehan@
  Approved by:  grehan@
  MFC after:    1 week
  Sponsored by: Netgate
  Differential Revision: https://reviews.freebsd.org/D25530

Modified:
  head/sys/net/iflib.c

Modified: head/sys/net/iflib.c
==============================================================================
--- head/sys/net/iflib.c        Mon Jul 27 00:26:54 2020        (r363589)
+++ head/sys/net/iflib.c        Mon Jul 27 01:17:59 2020        (r363590)
@@ -4192,7 +4192,9 @@ iflib_if_ioctl(if_t ifp, u_long command, caddr_t data)
                        if (if_getdrvflags(ifp) & IFF_DRV_RUNNING) {
                                if ((if_getflags(ifp) ^ ctx->ifc_if_flags) &
                                    (IFF_PROMISC | IFF_ALLMULTI)) {
+                                       CTX_UNLOCK(ctx);
                                        err = IFDI_PROMISC_SET(ctx, 
if_getflags(ifp));
+                                       CTX_LOCK(ctx);
                                }
                        } else
                                reinit = 1;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to