diff options
author | Florian Westphal <fw@strlen.de> | 2016-04-11 19:14:29 (GMT) |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-04-19 18:26:25 (GMT) |
commit | a163f2cb393d9d71cad57bfe6a8c7f452a478fb4 (patch) | |
tree | 025161410579d29f63ab274dddc6aa16e1e85755 /net/netfilter/nf_conntrack_proto_sctp.c | |
parent | 4a96300cec88729415683db8a2b909563b09fbaa (diff) | |
download | linux-a163f2cb393d9d71cad57bfe6a8c7f452a478fb4.tar.xz |
netfilter: conntrack: don't acquire lock during seq_printf
read access doesn't need any lock here.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_conntrack_proto_sctp.c')
-rw-r--r-- | net/netfilter/nf_conntrack_proto_sctp.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/net/netfilter/nf_conntrack_proto_sctp.c b/net/netfilter/nf_conntrack_proto_sctp.c index 9578a7c..1d7ab96 100644 --- a/net/netfilter/nf_conntrack_proto_sctp.c +++ b/net/netfilter/nf_conntrack_proto_sctp.c @@ -191,13 +191,7 @@ static void sctp_print_tuple(struct seq_file *s, /* Print out the private part of the conntrack. */ static void sctp_print_conntrack(struct seq_file *s, struct nf_conn *ct) { - enum sctp_conntrack state; - - spin_lock_bh(&ct->lock); - state = ct->proto.sctp.state; - spin_unlock_bh(&ct->lock); - - seq_printf(s, "%s ", sctp_conntrack_names[state]); + seq_printf(s, "%s ", sctp_conntrack_names[ct->proto.sctp.state]); } #define for_each_sctp_chunk(skb, sch, _sch, offset, dataoff, count) \ |