linux/drivers/clk/qcom
Gabor Juhos a903cfd38d clk: qcom: mmcc-apq8084: fix terminating of frequency table arrays
The frequency table arrays are supposed to be terminated with an
empty element. Add such entry to the end of the arrays where it
is missing in order to avoid possible out-of-bound access when
the table is traversed by functions like qcom_find_freq() or
qcom_find_freq_floor().

Only compile tested.

Fixes: 2b46cd23a5 ("clk: qcom: Add APQ8084 Multimedia Clock Controller (MMCC) support")
Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240229-freq-table-terminator-v1-6-074334f0905c@gmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
2024-03-02 12:40:42 -06:00
..
a7-pll.c clk: qcom: a7-pll: Add missing MODULE_DEVICE_TABLE 2021-04-09 11:20:52 -07:00
a53-pll.c clk: qcom: a53-pll: convert to use parent_data rather than parent_names 2022-09-13 16:49:15 -05:00
apcs-msm8916.c clk: qcom: Convert to platform remove callback returning void 2023-03-13 05:41:06 -07:00
apcs-msm8996.c clk: qcom: apcs-msm8986: Include bitfield.h for FIELD_PREP 2023-02-22 17:38:56 -08:00
apcs-sdx55.c clk: qcom: Convert to platform remove callback returning void 2023-03-13 05:41:06 -07:00
apss-ipq6018.c clk: qcom: apss-ipq6018: add the GPLL0 clock also as clock provider 2023-10-21 12:59:13 -07:00
apss-ipq-pll.c clk: qcom: apss-ipq-pll: add support for IPQ5018 2023-12-02 16:53:37 -08:00
camcc-sc7180.c clk: qcom: camcc-*: switch to module_platform_driver 2024-02-07 12:14:47 -06:00
camcc-sc7280.c clk: qcom: camcc-*: switch to module_platform_driver 2024-02-07 12:14:47 -06:00
camcc-sc8280xp.c clk: qcom: camcc-sc8280xp: fix terminating of frequency table arrays 2024-03-02 12:40:37 -06:00
camcc-sdm845.c clk: qcom: camcc-*: switch to module_platform_driver 2024-02-07 12:14:47 -06:00
camcc-sm6350.c clk: qcom: camcc-*: switch to module_platform_driver 2024-02-07 12:14:47 -06:00
camcc-sm8250.c clk: qcom: camcc-sm8250: Fix topology around titan_top power domain 2022-06-30 18:34:55 -05:00
camcc-sm8450.c clk: qcom: camcc-sm8450: switch to parent_hws 2023-01-10 15:58:59 -06:00
camcc-sm8550.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
camcc-x1e80100.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
clk-alpha-pll.c clk: qcom: clk-alpha-pll: Add support for zonda ole pll configure 2024-02-06 11:13:19 -06:00
clk-alpha-pll.h clk: qcom: clk-alpha-pll: Add support for zonda ole pll configure 2024-02-06 11:13:19 -06:00
clk-branch.c clk: qcom: branch: Add mem ops support for branch2 clocks 2023-12-07 08:47:05 -08:00
clk-branch.h clk: qcom: branch: Add a helper for setting the enable bit 2024-02-14 11:59:07 -06:00
clk-cbf-8996.c clk: qcom: cbf-msm8996: Convert to platform remove callback returning void 2023-10-21 08:40:00 -07:00
clk-cpu-8996.c clk: Annotate struct clk_hw_onecell_data with __counted_by 2023-08-22 13:51:26 -07:00
clk-hfpll.c clk: qcom: clk-hfpll: Configure l_val in init when required 2023-09-13 12:07:58 -07:00
clk-hfpll.h clk: qcom: clk-hfpll: Configure l_val in init when required 2023-09-13 12:07:58 -07:00
clk-krait.c clk: qcom: clk-krait: switch to .determine_rate 2023-03-13 16:38:24 -07:00
clk-krait.h clk: qcom: clk-krait: add apq/ipq8064 errata workaround 2022-06-27 15:41:37 -05:00
clk-pll.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00
clk-pll.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00
clk-rcg2.c clk: qcom: clk-rcg2: Fix clock rate overflow for high parent frequencies 2023-09-19 20:04:15 -07:00
clk-rcg.c clk: qcom: clk-rcg: add clk_rcg_floor_ops ops 2022-03-08 16:19:31 -06:00
clk-rcg.h clk: qcom: rcg2: Make hw_clk_ctrl toggleable 2023-05-26 18:22:58 -07:00
clk-regmap-divider.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00
clk-regmap-divider.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00
clk-regmap-mux-div.c clk: qcom: Add regmap mux-div clocks support 2018-01-02 10:00:24 -08:00
clk-regmap-mux-div.h clk: qcom: Use the correct style for SPDX License Identifier 2019-05-01 13:01:13 -07:00
clk-regmap-mux.c Revert "clk: qcom: regmap-mux: add pipe clk implementation" 2022-05-23 12:26:13 -05:00
clk-regmap-mux.h Revert "clk: qcom: regmap-mux: add pipe clk implementation" 2022-05-23 12:26:13 -05:00
clk-regmap-phy-mux.c clk: qcom: regmap: add PHY clock source implementation 2022-06-25 21:36:07 -05:00
clk-regmap-phy-mux.h clk: qcom: regmap: add PHY clock source implementation 2022-06-25 21:36:07 -05:00
clk-regmap.c clk: qcom: clk-regmap: Provide missing description for 'devm_clk_register_regmap()'s dev param 2021-02-10 19:42:51 -08:00
clk-regmap.h clk: define to_clk_regmap() as inline function 2020-10-28 16:34:44 -07:00
clk-rpm.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
clk-rpmh.c clk: qcom: rpmh: Add support for X1E80100 rpmh clocks 2023-12-07 20:21:13 -08:00
clk-smd-rpm.c clk: qcom: smd-rpm: Move CPUSS_GNoC clock to interconnect 2023-10-21 08:41:17 -07:00
clk-spmi-pmic-div.c clk: qcom: clk-spmi-pmic-div: Annotate struct spmi_pmic_div_clk_cc with __counted_by 2023-08-22 13:51:54 -07:00
common.c clk: qcom: regmap-mux: fix parent clock lookup 2021-12-02 15:07:34 -08:00
common.h clk: qcom: regmap-mux: fix parent clock lookup 2021-12-02 15:07:34 -08:00
dispcc-qcm2290.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
dispcc-sc7180.c clk: qcom: dispcc-*: switch to module_platform_driver 2024-02-07 12:14:47 -06:00
dispcc-sc7280.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
dispcc-sc8280xp.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
dispcc-sdm845.c clk: qcom: dispcc-sdm845: Adjust internal GDSC wait times 2024-02-16 11:43:05 -06:00
dispcc-sm6115.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
dispcc-sm6125.c clk: qcom: dispcc-*: switch to module_platform_driver 2024-02-07 12:14:47 -06:00
dispcc-sm6350.c clk: qcom: dispcc-*: switch to module_platform_driver 2024-02-07 12:14:47 -06:00
dispcc-sm6375.c clk: qcom: dispcc-*: switch to module_platform_driver 2024-02-07 12:14:47 -06:00
dispcc-sm8250.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
dispcc-sm8450.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
dispcc-sm8550.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
dispcc-sm8650.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
dispcc-x1e80100.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
ecpricc-qdu1000.c clk: qcom: Add ECPRICC driver support for QDU1000 and QRU1000 2023-12-07 08:47:05 -08:00
gcc-apq8084.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
gcc-ipq806x.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
gcc-ipq4019.c Merge branch 'clk-qcom' into clk-next 2023-08-30 14:39:58 -07:00
gcc-ipq5018.c clk: qcom: gcc-ipq5018: fix terminating of frequency table arrays 2024-03-02 12:40:05 -06:00
gcc-ipq5332.c clk: qcom: ipq5332: drop the CLK_SET_RATE_PARENT flag from GPLL clocks 2023-10-21 12:59:13 -07:00
gcc-ipq6018.c clk: qcom: gcc-ipq6018: fix terminating of frequency table arrays 2024-03-02 12:40:20 -06:00
gcc-ipq8074.c clk: qcom: gcc-ipq8074: fix terminating of frequency table arrays 2024-03-02 12:40:27 -06:00
gcc-ipq9574.c clk: qcom: gcc-ipq9574: fix terminating of frequency table arrays 2024-03-02 12:40:32 -06:00
gcc-mdm9607.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
gcc-mdm9615.c Merge branch 'clk-qcom' into clk-next 2023-08-30 14:39:58 -07:00
gcc-msm8660.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
gcc-msm8909.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
gcc-msm8916.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
gcc-msm8917.c Merge branch 'clk-qcom' into clk-next 2023-08-30 14:39:58 -07:00
gcc-msm8939.c clk: qcom: gcc-msm8939: Add missing CSI2 related clocks 2023-12-07 08:04:41 -08:00
gcc-msm8953.c clk: qcom: gcc-msm8953: add more resets 2024-02-07 12:14:48 -06:00
gcc-msm8960.c clk: Use device_get_match_data() 2023-10-23 20:16:21 -07:00
gcc-msm8974.c clk: Use device_get_match_data() 2023-10-23 20:16:21 -07:00
gcc-msm8976.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
gcc-msm8994.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
gcc-msm8996.c clk: qcom: gcc-msm8996: Remove RPM bus clocks 2023-09-19 20:02:31 -07:00
gcc-msm8998.c Merge branch 'clk-qcom' into clk-next 2023-08-30 14:39:58 -07:00
gcc-qcm2290.c clk: qcom: gcc-qcm2290: Mark RCGs shared where applicable 2023-05-24 21:47:16 -07:00
gcc-qcs404.c clk: qcom: gcc-qcs404: fix duplicate initializer warning 2023-01-30 08:41:06 -06:00
gcc-qdu1000.c Merge branch 'clk-qcom' into clk-next 2023-08-30 14:39:58 -07:00
gcc-sa8775p.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
gcc-sc7180.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
gcc-sc7280.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
gcc-sc8180x.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
gcc-sc8280xp.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
gcc-sdm660.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
gcc-sdm845.c clk: qcom: gcc-sdm845: Add soft dependency on rpmhpd 2024-01-23 09:38:32 -06:00
gcc-sdx55.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
gcc-sdx65.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
gcc-sdx75.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
gcc-sm4450.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
gcc-sm6115.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
gcc-sm6125.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
gcc-sm6350.c clk: qcom: gcc-sm6350: Fix gcc_sdcc2_apps_clk_src 2023-08-04 08:54:29 -07:00
gcc-sm6375.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
gcc-sm7150.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
gcc-sm8150.c clk: qcom: gcc-sm8150: Add gcc video resets for sm8150 2024-01-28 11:54:09 -06:00
gcc-sm8250.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
gcc-sm8350.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
gcc-sm8450.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
gcc-sm8550.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
gcc-sm8650.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
gcc-x1e80100.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
gdsc.c clk: qcom: gdsc: Enable supply reglator in GPU GX handler 2024-01-30 14:48:01 -06:00
gdsc.h clk: qcom: gdsc: Remove direct runtime PM calls 2022-11-04 11:53:49 -07:00
gpucc-msm8998.c Merge branch 'clk-qcom' into clk-next 2023-08-30 14:39:58 -07:00
gpucc-sa8775p.c clk: qcom: gpucc-*: switch to module_platform_driver 2024-02-07 12:14:48 -06:00
gpucc-sc7180.c clk: qcom: gpucc-*: switch to module_platform_driver 2024-02-07 12:14:48 -06:00
gpucc-sc7280.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
gpucc-sc8280xp.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
gpucc-sdm660.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
gpucc-sdm845.c clk: qcom: gpucc-*: switch to module_platform_driver 2024-02-07 12:14:48 -06:00
gpucc-sm6115.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
gpucc-sm6125.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
gpucc-sm6350.c clk: qcom: gpucc-sm6350: Fix clock source names 2023-07-09 20:53:09 -07:00
gpucc-sm6375.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
gpucc-sm8150.c clk: qcom: gpucc-*: switch to module_platform_driver 2024-02-07 12:14:48 -06:00
gpucc-sm8250.c clk: qcom: gpucc-*: switch to module_platform_driver 2024-02-07 12:14:48 -06:00
gpucc-sm8350.c clk: qcom: gpucc-*: switch to module_platform_driver 2024-02-07 12:14:48 -06:00
gpucc-sm8450.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
gpucc-sm8550.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
gpucc-sm8650.c clk: qcom: gpucc-sm8650: Add test_ctl parameters to PLL config 2023-12-19 14:12:41 -06:00
gpucc-x1e80100.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
hfpll.c clk: qcom: hfpll: Add MSM8976 PLL data 2023-09-13 12:07:59 -07:00
Kconfig clk: qcom: drop the SC7180 Modem subsystem clock driver 2024-02-16 11:17:16 -06:00
kpss-xcc.c clk: Use device_get_match_data() 2023-10-23 20:16:21 -07:00
krait-cc.c clk: Use device_get_match_data() 2023-10-23 20:16:21 -07:00
lcc-ipq806x.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
lcc-msm8960.c Merge branch 'clk-qcom' into clk-next 2023-08-30 14:39:58 -07:00
lpass-gfm-sm8250.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
lpassaudiocc-sc7280.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
lpasscc-sc7280.c clk: qcom: lpasscc-sc7280: fix missing resume during probe 2023-07-18 07:58:50 -07:00
lpasscc-sc8280xp.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
lpasscc-sdm845.c clk: qcom: lpasscc-sdm845: explicitly include clk-provider.h 2021-12-20 23:14:50 -06:00
lpasscorecc-sc7180.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
lpasscorecc-sc7280.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
Makefile clk: qcom: drop the SC7180 Modem subsystem clock driver 2024-02-16 11:17:16 -06:00
mmcc-apq8084.c clk: qcom: mmcc-apq8084: fix terminating of frequency table arrays 2024-03-02 12:40:42 -06:00
mmcc-msm8960.c clk: Use device_get_match_data() 2023-10-23 20:16:21 -07:00
mmcc-msm8974.c clk: qcom: mmcc-msm8974: remove ocmemcx_ahb_clk 2023-09-20 07:07:34 -07:00
mmcc-msm8994.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
mmcc-msm8996.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
mmcc-msm8998.c clk: qcom: mmcc-msm8998: Fix the SMMU GDSC 2023-09-20 05:40:33 -07:00
mmcc-sdm660.c clk: Use device_get_match_data() 2023-10-23 20:16:21 -07:00
q6sstop-qcs404.c clk: qcom: q6sstop-qcs404: fix missing resume during probe 2023-07-18 07:58:50 -07:00
reset.c clk: qcom: reset: Ensure write completion on reset de/assertion 2024-02-07 12:14:19 -06:00
reset.h clk: qcom: reset: Increase max reset delay 2024-02-06 14:53:26 -06:00
tcsrcc-sm8550.c clk: Explicitly include correct DT includes 2023-07-19 13:13:16 -07:00
tcsrcc-sm8650.c clk: qcom: add the SM8650 TCSR Clock Controller driver 2023-12-07 08:11:29 -08:00
tcsrcc-x1e80100.c clk: qcom: Add TCSR clock driver for x1e80100 2024-02-06 11:13:19 -06:00
turingcc-qcs404.c clk: qcom: turingcc-qcs404: fix missing resume during probe 2023-07-18 07:58:50 -07:00
videocc-sc7180.c clk: qcom: videocc-*: switch to module_platform_driver 2024-02-07 12:14:48 -06:00
videocc-sc7280.c clk: qcom: videocc-*: switch to module_platform_driver 2024-02-07 12:14:48 -06:00
videocc-sdm845.c clk: qcom: videocc-*: switch to module_platform_driver 2024-02-07 12:14:48 -06:00
videocc-sm8150.c clk: qcom: videocc-*: switch to module_platform_driver 2024-02-07 12:14:48 -06:00
videocc-sm8250.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
videocc-sm8350.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
videocc-sm8450.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00
videocc-sm8550.c clk: qcom: Use qcom_branch_set_clk_en() 2024-02-14 11:59:07 -06:00