From: Patrick McHardy Date: Tue, 6 Sep 2005 22:11:10 +0000 (-0700) Subject: [NETFILTER]: Missing unlock in TCP connection tracking error path X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e4466399398a2ec854776e9eca2b4415b40bd1ff;p=openwrt%2Fstaging%2Fblogic.git [NETFILTER]: Missing unlock in TCP connection tracking error path Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- diff --git a/net/ipv4/netfilter/ip_conntrack_proto_tcp.c b/net/ipv4/netfilter/ip_conntrack_proto_tcp.c index f23ef1f88c46..1985abc59d24 100644 --- a/net/ipv4/netfilter/ip_conntrack_proto_tcp.c +++ b/net/ipv4/netfilter/ip_conntrack_proto_tcp.c @@ -349,6 +349,7 @@ static int tcp_to_nfattr(struct sk_buff *skb, struct nfattr *nfa, return 0; nfattr_failure: + read_unlock_bh(&tcp_lock); return -1; } #endif