]> git.ipfire.org Git - thirdparty/linux.git/commit
hsi: hsi_core: use kzalloc_flex
authorRosen Penev <rosenp@gmail.com>
Wed, 18 Mar 2026 19:10:37 +0000 (12:10 -0700)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 19 Mar 2026 22:55:27 +0000 (23:55 +0100)
commite61af3ca893363838f263f3528476f6e1faed9aa
tree88d136b6d9fc2b226ea44dddc61f6cf4c9dff902
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
hsi: hsi_core: use kzalloc_flex

Simplifies allocations by using a flexible array member in this struct.

Add __counted_by to get extra runtime analysis.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20260318191037.5661-1-rosenp@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/hsi/hsi_core.c
include/linux/hsi/hsi.h