svn commit: r236557 - projects/pf/head/sys/contrib/pf/net
Gleb Smirnoff
glebius at FreeBSD.org
Mon Jun 4 11:51:18 UTC 2012
Author: glebius
Date: Mon Jun 4 11:51:17 2012
New Revision: 236557
URL: http://svn.freebsd.org/changeset/base/236557
Log:
Add missing locking to pfsync_timeout().
Modified:
projects/pf/head/sys/contrib/pf/net/if_pfsync.c
Modified: projects/pf/head/sys/contrib/pf/net/if_pfsync.c
==============================================================================
--- projects/pf/head/sys/contrib/pf/net/if_pfsync.c Mon Jun 4 11:24:03 2012 (r236556)
+++ projects/pf/head/sys/contrib/pf/net/if_pfsync.c Mon Jun 4 11:51:17 2012 (r236557)
@@ -2191,7 +2191,9 @@ pfsync_timeout(void *arg)
struct pfsync_softc *sc = arg;
CURVNET_SET(sc->sc_ifp->if_vnet);
+ PFSYNC_LOCK(sc);
pfsync_push(sc);
+ PFSYNC_UNLOCK(sc);
CURVNET_RESTORE();
}
More information about the svn-src-projects
mailing list