linux-yocto/drivers/interconnect
Kees Cook c16fa6d501 interconnect: icc-clk: Add missed num_nodes initialization
[ Upstream commit c801ed8684 ]

With the new __counted_by annotation, the "num_nodes" struct member must
be set before accessing the "nodes" array. This initialization was done
in other places where a new struct icc_onecell_data is allocated, but this
case in icc_clk_register() was missed. Set "num_nodes" after allocation.

Fixes: dd4904f3b9 ("interconnect: qcom: Annotate struct icc_onecell_data with __counted_by")
Signed-off-by: Kees Cook <kees@kernel.org>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20240716214819.work.328-kees@kernel.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-10-04 16:29:40 +02:00
..
imx
qcom interconnect: qcom: qcm2290: Fix mas_snoc_bimc RPM master ID 2024-08-03 08:53:58 +02:00
samsung
bulk.c
core.c
debugfs-client.c
icc-clk.c interconnect: icc-clk: Add missed num_nodes initialization 2024-10-04 16:29:40 +02:00
internal.h
Kconfig
Makefile
trace.h