netfilter: nf_conntrack_expect: fix error path unwind in nf_conntrack_expect_init()
Signed-off-by: Alexey Dobriyan <adobriyan@parallels.com> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8c3a01d0c2
commit
12293bf911
|
@ -587,10 +587,10 @@ int __init nf_conntrack_expect_init(void)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err3:
|
err3:
|
||||||
|
kmem_cache_destroy(nf_ct_expect_cachep);
|
||||||
|
err2:
|
||||||
nf_ct_free_hashtable(nf_ct_expect_hash, nf_ct_expect_vmalloc,
|
nf_ct_free_hashtable(nf_ct_expect_hash, nf_ct_expect_vmalloc,
|
||||||
nf_ct_expect_hsize);
|
nf_ct_expect_hsize);
|
||||||
err2:
|
|
||||||
kmem_cache_destroy(nf_ct_expect_cachep);
|
|
||||||
err1:
|
err1:
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue