diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nf_conntrack_helper.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/netfilter/nf_conntrack_helper.c b/net/netfilter/nf_conntrack_helper.c index 03b3ed8fca9e..2628f4ba35ee 100644 --- a/net/netfilter/nf_conntrack_helper.c +++ b/net/netfilter/nf_conntrack_helper.c | |||
@@ -97,13 +97,14 @@ static inline int unhelp(struct nf_conntrack_tuple_hash *i, | |||
97 | 97 | ||
98 | int nf_conntrack_helper_register(struct nf_conntrack_helper *me) | 98 | int nf_conntrack_helper_register(struct nf_conntrack_helper *me) |
99 | { | 99 | { |
100 | int ret; | 100 | int size, ret; |
101 | |||
101 | BUG_ON(me->timeout == 0); | 102 | BUG_ON(me->timeout == 0); |
102 | 103 | ||
104 | size = ALIGN(sizeof(struct nf_conn), __alignof__(struct nf_conn_help)) + | ||
105 | sizeof(struct nf_conn_help); | ||
103 | ret = nf_conntrack_register_cache(NF_CT_F_HELP, "nf_conntrack:help", | 106 | ret = nf_conntrack_register_cache(NF_CT_F_HELP, "nf_conntrack:help", |
104 | sizeof(struct nf_conn) | 107 | size); |
105 | + sizeof(struct nf_conn_help) | ||
106 | + __alignof__(struct nf_conn_help)); | ||
107 | if (ret < 0) { | 108 | if (ret < 0) { |
108 | printk(KERN_ERR "nf_conntrack_helper_register: Unable to create slab cache for conntracks\n"); | 109 | printk(KERN_ERR "nf_conntrack_helper_register: Unable to create slab cache for conntracks\n"); |
109 | return ret; | 110 | return ret; |