[ovs-dev] [PATCH] datapath: Use correct type while allocating flex array.

Jesse Gross jesse at nicira.com
Thu Jun 6 23:43:53 UTC 2013


On Thu, Jun 6, 2013 at 2:29 PM, Pravin B Shelar <pshelar at nicira.com> wrote:
> Flex array is used to allocate hash buckets which is type struct
> hlist_head, but we use `struct hlist_head *` to calculate
> array size.  Since hlist_head is of size pointer it works fine.
>
> Following patch use correct type.
>
> Signed-off-by: Pravin B Shelar <pshelar at nicira.com>

Good catch.

Acked-by: Jesse Gross <jesse at nicira.com>



More information about the dev mailing list