Re: [PATCH] xen: use struct_size() helper in kzalloc()

From: Juergen Gross
Date: Fri Apr 05 2019 - 02:48:16 EST


On 03/04/2019 07:26, Andrea Righi wrote:
> struct privcmd_buf_vma_private has a zero-sized array at the end
> (pages), use the new struct_size() helper to determine the proper
> allocation size and avoid potential type mistakes.
>
> Signed-off-by: Andrea Righi <andrea.righi@xxxxxxxxxxxxx>

Pushed to xen/tip.git for-linus-5.1b


Juergen