[PATCH 0/3] firewire: core/cdev: use kzalloc_flex() to allocate structure with flexible array

From: Takashi Sakamoto

Date: Mon Sep 28 2026 - 09:07:52 EST


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(-)


base-commit: a781263c292e7bda50812ba2347459e8ce9d778b
--
2.53.0