diff options
author | Alexey Dobriyan <adobriyan@parallels.com> | 2008-05-29 03:19:37 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-29 03:19:37 -0700 |
commit | 12293bf91126ad253a25e2840b307fdc7c2754c3 (patch) | |
tree | f936e8c39267398e77bc7ab71b63098ebd878e7c /net | |
parent | 8c3a01d0c259ec8b283c52dbeadda0122582a68b (diff) |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nf_conntrack_expect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/nf_conntrack_expect.c b/net/netfilter/nf_conntrack_expect.c index e31beeb33b2b..e8f0dead267f 100644 --- a/net/netfilter/nf_conntrack_expect.c +++ b/net/netfilter/nf_conntrack_expect.c @@ -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; } |