linux/drivers/thunderbolt/path.c
Rosen Penev c3e7cc8bc5 thunderbolt: Use kzalloc_flex() for struct tb_path allocation
Simplifies allocation of struct tb_path by using a flexible array
member. Also added __counted_by for extra runtime analysis.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
2026-03-23 06:49:43 +01:00

618 lines
16 KiB