]> git.ipfire.org Git - thirdparty/linux.git/commit
firmware: stratix10-svc: kmalloc_array + kzalloc to flex
authorRosen Penev <rosenp@gmail.com>
Sat, 21 Mar 2026 03:52:17 +0000 (20:52 -0700)
committerDinh Nguyen <dinguyen@kernel.org>
Fri, 1 May 2026 02:22:28 +0000 (21:22 -0500)
commit3f7fd751d8a0bd47165d515d6479ec81944fb5d2
treebd85a54c1ea2ca7e8cd9f6fa4b7cb9835de2f717
parent254f49634ee16a731174d2ae34bc50bd5f45e731
firmware: stratix10-svc: kmalloc_array + kzalloc to flex

Use a flexible array member to combine allocations. Simplifies memory
management.

Add __counted_by for extra runtime analysis. Also move counting variable
assignment up as required by __counted_by.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
drivers/firmware/stratix10-svc.c