[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:
parent
99fa5f5397
commit
1d670fdc8c
@ -1237,7 +1237,7 @@ ctnetlink_new_conntrack(struct sock *ctnl, struct sk_buff *skb,
|
|||||||
CTA_TUPLE_MASTER,
|
CTA_TUPLE_MASTER,
|
||||||
u3);
|
u3);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
goto out_unlock;
|
||||||
|
|
||||||
master_h = __nf_conntrack_find(&master, NULL);
|
master_h = __nf_conntrack_find(&master, NULL);
|
||||||
if (master_h == NULL) {
|
if (master_h == NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user