Commit 12293bf9 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by David S. Miller

netfilter: nf_conntrack_expect: fix error path unwind in nf_conntrack_expect_init()

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@parallels.com>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8c3a01d0
......@@ -587,10 +587,10 @@ int __init nf_conntrack_expect_init(void)
return 0;
err3:
kmem_cache_destroy(nf_ct_expect_cachep);
err2:
nf_ct_free_hashtable(nf_ct_expect_hash, nf_ct_expect_vmalloc,
nf_ct_expect_hsize);
err2:
kmem_cache_destroy(nf_ct_expect_cachep);
err1:
return err;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment