mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
netfilter: ct_extend: fix the wrong alloc_size
In function update_alloc_size(), sizeof(struct nf_ct_ext) is added twice wrongly. Signed-off-by: Changli Gao <xiaosuo@gmail.com> Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
parent
b468645d72
commit
3b23688069
1 changed files with 2 additions and 3 deletions
|
@ -144,9 +144,8 @@ static void update_alloc_size(struct nf_ct_ext_type *type)
|
|||
if (!t1)
|
||||
continue;
|
||||
|
||||
t1->alloc_size = sizeof(struct nf_ct_ext)
|
||||
+ ALIGN(sizeof(struct nf_ct_ext), t1->align)
|
||||
+ t1->len;
|
||||
t1->alloc_size = ALIGN(sizeof(struct nf_ct_ext), t1->align) +
|
||||
t1->len;
|
||||
for (j = 0; j < NF_CT_EXT_NUM; j++) {
|
||||
t2 = nf_ct_ext_types[j];
|
||||
if (t2 == NULL || t2 == t1 ||
|
||||
|
|
Loading…
Reference in a new issue