nf_conntrack: fix error path unwind in nf_conntrack_expect_init()
Subsystems (2)
PATCH 1/1 nf_conntrack: fix error path unwind in nf_conntrack_expect_init()
Signed-off-by Alexey Dobriyan <[email protected]>
---
net/netfilter/nf_conntrack_expect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/netfilter/nf_conntrack_expect.c +2 -2
@@ -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; }
Patrick McHardy
AppliedQuoted 5 lines · Alexey Dobriyan
Signed-off-by Alexey Dobriyan <[email protected]>---
net/netfilter/nf_conntrack_expect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Applied, thanks Alexey. I'll also push this to -stable.