Re: [PATCH] ALSA: usb-audio: Use flexible allocation for FCP packets
From: Takashi Iwai
Date: Tue May 19 2026 - 02:07:27 EST
On Tue, 19 May 2026 02:48:34 +0200,
Rosen Penev wrote:
>
> Allocate FCP request and response packets with kmalloc_flex() for
> the trailing packet data instead of passing the computed struct size
> directly to kmalloc().
>
> Keep the computed packet sizes for the USB transfer length checks.
>
> Assisted-by: Codex:GPT-5.5
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
Applied to for-next branch. Thanks.
Takashi