Re: [PATCH v2] iwlwifi: dvm: use struct_size over open coded arithmetic

From: Coelho, Luciano
Date: Fri Jan 28 2022 - 07:34:17 EST


On Fri, 2022-01-28 at 09:31 +0000, cgel.zte@xxxxxxxxx wrote:
> From: Minghao Chi (CGEL ZTE) <chi.minghao@xxxxxxxxxx>
>
> Replace zero-length array with flexible-array member and make use
> of the struct_size() helper in kmalloc(). For example:

You're not replacing zero-length arrays in this patch, so this is not
correct. Probably a copy/paste from a different patch?

--
Cheers,
Luca.