svn commit: r363590 - head/sys/net
Matt Macy
mmacy at FreeBSD.org
Mon Jul 27 01:18:00 UTC 2020
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;
More information about the svn-src-head
mailing list