]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: oss: Use flexible allocation for PCM plugins
authorRosen Penev <rosenp@gmail.com>
Tue, 19 May 2026 00:46:47 +0000 (17:46 -0700)
committerTakashi Iwai <tiwai@suse.de>
Tue, 19 May 2026 06:02:52 +0000 (08:02 +0200)
commit2c515c221a7a2fd0dcb335b9866a98d0bedd9ca5
tree71c0b400b0dce62238ca8b33764235c77ef7d0ae
parent1ab8e422dc779a91acba2d0aafc47b0db6680b4b
ALSA: oss: Use flexible allocation for PCM plugins

Allocate PCM plugin objects with kzalloc_flex() for the trailing
extra data area instead of open-coding the size calculation.

This keeps the allocation tied to the existing flexible array member
without changing the plugin lifetime.

Assisted-by: Codex:GPT-5.5
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20260519004647.627429-1-rosenp@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/oss/pcm_plugin.c