Re: [PATCH v2] ASoC: codecs: Use struct_size() for aw_container allocation

From: Mark Brown

Date: Tue Jun 02 2026 - 12:20:48 EST


On Tue, Jun 02, 2026 at 09:37:01AM +0800, wangdich9700@xxxxxxx wrote:
> From: wangdicheng <wangdicheng@xxxxxxxxxx>
>
> The aw88395 driver and its variants (aw88081, aw88261) use sizeof(int)
> when allocating memory for struct aw_container. This should use
> struct_size() helper macro instead for proper type safety and
> portability.

Actually someone else already sent this change, it's in my current tree.

Attachment: signature.asc
Description: PGP signature