Skip to contentSkip to conversation

: Missing unlock in TCP connection tracking error path

PATCH In review Patrick McHardy 1 participant 1 message Sep 6, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 8/8 : Missing unlock in TCP connection tracking error path

[NETFILTER]: Missing unlock in TCP connection tracking error path

---
commit 74429d5859618a299a503db33160f27b37956bc5
tree ef0f565b47798d08ffd517c05ec6da4bdbed2acf
parent d6a220e261a31f34b644112192cc2d86278ee326
author Patrick McHardy <[email protected]> Sun, 04 Sep 2005 20:07:33 +0200 committer Patrick McHardy <[email protected]> Sun, 04 Sep 2005 20:07:33 +0200

 net/ipv4/netfilter/ip_conntrack_proto_tcp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
net/ipv4/netfilter/ip_conntrack_proto_tcp.c +1 -0
@@ -349,6 +349,7 @@ static int tcp_to_nfattr(struct sk_buff 
 	return 0;
 
 nfattr_failure:
+	read_unlock_bh(&tcp_lock);
 	return -1;
 }
 #endif