Re: [PATCH 0/3] firewire: core/cdev: use kzalloc_flex() to allocate structure with flexible array
From: Takashi Sakamoto
Date: Mon Sep 28 2026 - 18:57:45 EST
On Mon, Sep 28, 2026 at 09:57:14PM +0900, Takashi Sakamoto wrote:
> Hi,
>
> Some structures are defined with a trailing flexible array member to store
> data. kmalloc_flex() and its variants are useful for allocating these
> structures.
>
> This series replaces kmalloc() with kzalloc_flex() where appropriate.
>
> Takashi Sakamoto (3):
> firewire: core: use kzalloc_flex() to allocate structure with quadlet
> array
> firewire: cdev: use kzalloc_flex() to allocate structure with quadlet
> array
> firewire: cdev: use kzalloc_flex() to allocate structure with byte
> array
>
> drivers/firewire/core-cdev.c | 11 ++++++-----
> drivers/firewire/core-transaction.c | 4 ++--
> 2 files changed, 8 insertions(+), 7 deletions(-)
Applied to for-next branch.
Regards
Takashi Sakamoto