[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:
Родитель
99fa5f5397
Коммит
1d670fdc8c
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче