Re: [PATCH v2] net: sched: cls_u32: Fix allocation size in u32_init()

2023-10-06 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (main) by David S. Miller : On Wed, 4 Oct 2023 15:19:37 +0200 you wrote: > commit d61491a51f7e ("net/sched: cls_u32: Replace one-element array > with flexible-array member") incorrecly replaced an instance of > `sizeof(*tp_c)` with `struct_size(tp_c

Re: [PATCH v2] net: sched: cls_u32: Fix allocation size in u32_init()

2023-10-04 Thread Jamal Hadi Salim
On Wed, Oct 4, 2023 at 9:19 AM Gustavo A. R. Silva wrote: > > commit d61491a51f7e ("net/sched: cls_u32: Replace one-element array > with flexible-array member") incorrecly replaced an instance of > `sizeof(*tp_c)` with `struct_size(tp_c, hlist->ht, 1)`. This results > in a an over-allocation of 8

[PATCH v2] net: sched: cls_u32: Fix allocation size in u32_init()

2023-10-04 Thread Gustavo A. R. Silva
commit d61491a51f7e ("net/sched: cls_u32: Replace one-element array with flexible-array member") incorrecly replaced an instance of `sizeof(*tp_c)` with `struct_size(tp_c, hlist->ht, 1)`. This results in a an over-allocation of 8 bytes. This change is wrong because `hlist` in `struct tc_u_common`