diff options
author | Kristof Provost <kp@FreeBSD.org> | 2023-04-18 13:24:24 +0000 |
---|---|---|
committer | Kristof Provost <kp@FreeBSD.org> | 2023-04-18 13:51:05 +0000 |
commit | af94d8cc17164e2558fc97abdfbaeb550cd337b6 (patch) | |
tree | a52dc0b2a8ecbdf4a3b396703493f2810c74f4ea /sys/net | |
parent | fb499259997c0bfd724b7b67578035cd977ef60f (diff) | |
download | src-af94d8cc17164e2558fc97abdfbaeb550cd337b6.tar.gz src-af94d8cc17164e2558fc97abdfbaeb550cd337b6.zip |
pf: fix incorrect lock define
PF_TABLE_STATS_ASSERT() should be checking pf_table_stats_lock not
pf_rules_lock.
Fortunately the define is not yet used anywhere so this was harmless.
Fix it anyway, in case it does get used.
Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/pfvar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index e2cddb49728c..e9e23d985cfa 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -400,7 +400,7 @@ extern struct mtx_padalign pf_table_stats_lock; #define PF_TABLE_STATS_LOCK() mtx_lock(&pf_table_stats_lock) #define PF_TABLE_STATS_UNLOCK() mtx_unlock(&pf_table_stats_lock) #define PF_TABLE_STATS_OWNED() mtx_owned(&pf_table_stats_lock) -#define PF_TABLE_STATS_ASSERT() mtx_assert(&pf_rules_lock, MA_OWNED) +#define PF_TABLE_STATS_ASSERT() mtx_assert(&pf_table_stats_lock, MA_OWNED) extern struct sx pf_end_lock; |