Skip to content

Commit 334a47f

Browse files
committed
netfilter: nf_ct_tcp: fix up build after merge
Replace the last occurence of tcp_lock by the per-conntrack lock. Signed-off-by: Patrick McHardy <kaber@trash.net>
1 parent 36432da commit 334a47f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/nf_conntrack_proto_tcp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ static int tcp_packet(struct nf_conn *ct,
944944
&& (ct->proto.tcp.seen[!dir].flags & IP_CT_TCP_FLAG_MAXACK_SET)
945945
&& before(ntohl(th->seq), ct->proto.tcp.seen[!dir].td_maxack)) {
946946
/* Invalid RST */
947-
write_unlock_bh(&tcp_lock);
947+
spin_unlock_bh(&ct->lock);
948948
if (LOG_INVALID(net, IPPROTO_TCP))
949949
nf_log_packet(pf, 0, skb, NULL, NULL, NULL,
950950
"nf_ct_tcp: invalid RST ");

0 commit comments

Comments
 (0)