summaryrefslogtreecommitdiffstats
path: root/lib/test_printf.c
diff options
context:
space:
mode:
authorLiping Zhang <zlpnobody@gmail.com>2017-04-02 12:25:37 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2017-04-08 23:52:17 +0200
commit7cddd967bfc2e4fc6b3218c2ddc67fbeed433ad3 (patch)
treea6f7bdfda4629a5a413b941c2a76ce965ee9b61e /lib/test_printf.c
parentnetfilter: ctnetlink: skip dumping expect when nfct_help(ct) is NULL (diff)
downloadlinux-7cddd967bfc2e4fc6b3218c2ddc67fbeed433ad3.tar.xz
linux-7cddd967bfc2e4fc6b3218c2ddc67fbeed433ad3.zip
netfilter: nf_ct_expect: use proper RCU list traversal/update APIs
We should use proper RCU list APIs to manipulate help->expectations, as we can dump the conntrack's expectations via nfnetlink, i.e. in ctnetlink_exp_ct_dump_table(), where only rcu_read_lock is acquired. So for list traversal, use hlist_for_each_entry_rcu; for list add/del, use hlist_add_head_rcu and hlist_del_rcu. Signed-off-by: Liping Zhang <zlpnobody@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'lib/test_printf.c')
0 files changed, 0 insertions, 0 deletions