diff options
author | ae <ae@FreeBSD.org> | 2017-01-24 00:38:35 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2017-01-24 00:38:35 +0000 |
commit | 1e8f10faa2cf849d9ec5295daecbff4c9f081147 (patch) | |
tree | 1312db9c2377c490f7127f143e42358f0413d21a /sys/netpfil | |
parent | f00cff488484644353a03798941a56df4c3657b7 (diff) | |
download | FreeBSD-src-1e8f10faa2cf849d9ec5295daecbff4c9f081147.zip FreeBSD-src-1e8f10faa2cf849d9ec5295daecbff4c9f081147.tar.gz |
MFC r312341:
Initialize IPFW static rules rmlock with RM_RECURSE flag.
This lock was replaced from rwlock in r272840. But unlike rwlock, rmlock
doesn't allow recursion on rm_rlock(), so at this time fix this with
RM_RECURSE flag. Later we need to change ipfw to avoid such recursions.
PR: 216171
Diffstat (limited to 'sys/netpfil')
-rw-r--r-- | sys/netpfil/ipfw/ip_fw_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netpfil/ipfw/ip_fw_private.h b/sys/netpfil/ipfw/ip_fw_private.h index e90781a..758479f 100644 --- a/sys/netpfil/ipfw/ip_fw_private.h +++ b/sys/netpfil/ipfw/ip_fw_private.h @@ -412,7 +412,7 @@ struct ipfw_ifc { #define IPFW_PF_RUNLOCK(p) IPFW_RUNLOCK(p) #else /* FreeBSD */ #define IPFW_LOCK_INIT(_chain) do { \ - rm_init(&(_chain)->rwmtx, "IPFW static rules"); \ + rm_init_flags(&(_chain)->rwmtx, "IPFW static rules", RM_RECURSE); \ rw_init(&(_chain)->uh_lock, "IPFW UH lock"); \ } while (0) |