WSL2-Linux-Kernel/drivers/interconnect/qcom
Dmitry Baryshkov d2430d45f1 interconnect: qcom: osm-l3: fix icc_onecell_data allocation
[ Upstream commit f77ebdda0e ]

This is a struct with a trailing zero-length array of icc_node pointers
but it's allocated as if it were a single array of icc_nodes instead.

Fortunately this overallocates memory rather then allocating less memory
than required.

Fix by replacing devm_kcalloc() with devm_kzalloc() and struct_size()
macro.

Fixes: 5bc9900add ("interconnect: qcom: Add OSM L3 interconnect provider support")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20230105002221.1416479-2-dmitry.baryshkov@linaro.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-30 12:47:41 +02:00
..
Kconfig
Makefile
bcm-voter.c
bcm-voter.h
icc-rpm.c
icc-rpm.h
icc-rpmh.c interconnect: qcom: icc-rpmh: Add BCMs to commit list in pre_aggregate 2022-06-09 10:23:31 +02:00
icc-rpmh.h
msm8916.c
msm8939.c
msm8974.c
osm-l3.c interconnect: qcom: osm-l3: fix icc_onecell_data allocation 2023-03-30 12:47:41 +02:00
qcs404.c
sc7180.c
sc7180.h
sc7280.c
sc7280.h
sc8180x.c
sc8180x.h
sdm660.c
sdm845.c
sdm845.h
sdx55.c
sdx55.h
sm8150.c interconnect: qcom: icc-rpmh: Add BCMs to commit list in pre_aggregate 2022-06-09 10:23:31 +02:00
sm8150.h
sm8250.c interconnect: qcom: icc-rpmh: Add BCMs to commit list in pre_aggregate 2022-06-09 10:23:31 +02:00
sm8250.h
sm8350.c interconnect: qcom: icc-rpmh: Add BCMs to commit list in pre_aggregate 2022-06-09 10:23:31 +02:00
sm8350.h
smd-rpm.c
smd-rpm.h