Ver Fonte

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

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Patrick McHardy há 19 anos atrás
pai
commit
e446639939
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      net/ipv4/netfilter/ip_conntrack_proto_tcp.c

+ 1 - 0
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