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 interconnect: qcom: Add SC8180x providers 2021-08-09 15:16:53 +03:00
Makefile interconnect: qcom: Add SC8180x providers 2021-08-09 15:16:53 +03:00
bcm-voter.c interconnect: qcom: Add missing MODULE_DEVICE_TABLE 2021-05-11 07:26:31 +03:00
bcm-voter.h
icc-rpm.c interconnect: qcom: rpm: Prevent integer overflow in rate 2022-01-27 11:05:00 +01:00
icc-rpm.h interconnect: qcom: Consolidate interconnect RPM support 2021-01-05 13:09:58 +02:00
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 interconnect: qcom: icc-rpmh: Consolidate probe functions 2021-07-22 10:05:24 +03:00
msm8916.c interconnect: qcom: Consolidate interconnect RPM support 2021-01-05 13:09:58 +02:00
msm8939.c interconnect: qcom: msm8939: remove rpm-ids from non-RPM nodes 2021-03-08 15:09:15 +02:00
msm8974.c
osm-l3.c interconnect: qcom: osm-l3: fix icc_onecell_data allocation 2023-03-30 12:47:41 +02:00
qcs404.c interconnect: qcom: qcs404: use shared code 2021-01-05 13:10:12 +02:00
sc7180.c interconnect: qcom: sc7180: Drop IP0 interconnects 2022-06-09 10:23:31 +02:00
sc7180.h
sc7280.c interconnect: qcom: icc-rpmh: Consolidate probe functions 2021-07-22 10:05:24 +03:00
sc7280.h interconnect: qcom: Add SC7280 interconnect provider driver 2021-05-11 11:53:31 +03:00
sc8180x.c interconnect: qcom: Add SC8180x providers 2021-08-09 15:16:53 +03:00
sc8180x.h interconnect: qcom: osm-l3: Add sc8180x support 2021-08-09 15:17:25 +03:00
sdm660.c interconnect: qcom: sdm660: Add missing a2noc qos clocks 2021-09-13 15:49:55 +03:00
sdm845.c interconnect: qcom: icc-rpmh: Consolidate probe functions 2021-07-22 10:05:24 +03:00
sdm845.h
sdx55.c interconnect: qcom: sdx55: Drop IP0 interconnects 2022-05-09 09:14:33 +02:00
sdx55.h interconnect: qcom: Add SDX55 interconnect provider driver 2021-01-27 13:11:33 +02:00
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 interconnect: qcom: Add SM8350 interconnect provider driver 2021-03-27 14:34:12 +02:00
smd-rpm.c
smd-rpm.h