[NETFILTER]: nf_conntrack_netlink: fix unbalanced locking

Properly drop nf_conntrack_lock on tuple parsing error.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Patrick McHardy 2008-01-31 04:35:57 -08:00 committed by David S. Miller
parent 99fa5f5397
commit 1d670fdc8c

View File

@ -1237,7 +1237,7 @@ ctnetlink_new_conntrack(struct sock *ctnl, struct sk_buff *skb,
CTA_TUPLE_MASTER,
u3);
if (err < 0)
return err;
goto out_unlock;
master_h = __nf_conntrack_find(&master, NULL);
if (master_h == NULL) {