]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
thunderbolt: dma_port: kmalloc_array + kzalloc to flex
authorRosen Penev <rosenp@gmail.com>
Fri, 13 Mar 2026 21:41:37 +0000 (14:41 -0700)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 18 Mar 2026 13:31:56 +0000 (14:31 +0100)
commit500e54d449f60e9692e2622ad2ba4f1e79590e87
tree2ecfc46fc408501b7ceda51065958147d931c670
parentf791145abcb83faa6ba580f2b7a6cefef37b9cf3
thunderbolt: dma_port: kmalloc_array + kzalloc to flex

Use a single allocation with a flexible array member. Simplifies
allocation and freeing.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/dma_port.c