linux-stable/drivers/clk
Gabor Juhos ca2cf98d46 clk: qcom: mmcc-msm8974: fix terminating of frequency table arrays
[ Upstream commit e2c02a85bf ]

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: d8b212014e ("clk: qcom: Add support for MSM8974's multimedia clock controller (MMCC)")
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-7-074334f0905c@gmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-03 15:32:10 +02:00
..
actions
analogbits
at91
axis
axs10x
baikal-t1
bcm
berlin
davinci
hisilicon clk: hisilicon: hi3559a: Fix an erroneous devm_kfree() 2024-03-26 18:17:09 -04:00
imgtec
imx clk: imx: imx8mp: Fix SAI_MCLK_SEL definition 2024-03-26 18:17:13 -04:00
ingenic
keystone
mediatek clk: mediatek: mt7981-topckgen: flag SGM_REG_SEL as critical 2024-03-26 18:17:10 -04:00
meson clk: meson: Add missing clocks to axg_clk_regmaps 2024-03-26 18:17:02 -04:00
microchip clk: microchip: mpfs-ccc: replace include of asm-generic/errno-base.h 2023-12-17 14:47:43 -08:00
mmp clk: mmp: pxa168: Fix memory leak in pxa168_clk_init() 2023-12-16 17:15:06 -08:00
mstar
mvebu
mxs
nuvoton
nxp
pistachio
pxa
qcom clk: qcom: mmcc-msm8974: fix terminating of frequency table arrays 2024-04-03 15:32:10 +02:00
ralink
renesas clk: renesas: r9a07g04[34]: Use SEL_SDHI1_STS status configuration for SD1 mux 2024-03-26 18:17:05 -04:00
rockchip Only a couple new SoCs have support added this time, primarily for Qualcomm 2024-01-12 13:42:35 -08:00
samsung clk: samsung: exynos850: Propagate SPI IPCLK rate change 2024-03-26 18:17:02 -04:00
sifive
socfpga
spear
sprd
st
starfive clk: starfive: jh7100: Add CLK_SET_RATE_PARENT to gmac_tx 2024-01-03 15:51:58 -08:00
stm32 clk: stm32mp1: use stm32mp13 reset driver 2023-12-17 15:33:26 -08:00
sunxi
sunxi-ng clk: sunxi-ng: nkm: remove redundant initialization of tmp_parent 2023-11-18 23:20:34 +01:00
tegra
ti
uniphier
ux500
versatile
visconti
x86
xilinx clocking-wizard: Add support for versal clocking wizard 2023-12-17 14:55:14 -08:00
zynq clk: zynq: Prevent null pointer dereference caused by kmalloc failure 2024-03-26 18:17:20 -04:00
zynqmp drivers: clk: zynqmp: update divider round rate logic 2023-12-16 17:20:14 -08:00
.kunitconfig
Kconfig clk: stm32mp1: move stm32mp1 clock driver into stm32 directory 2023-12-17 15:33:26 -08:00
Makefile clk: stm32mp1: move stm32mp1 clock driver into stm32 directory 2023-12-17 15:33:26 -08:00
clk-apple-nco.c
clk-asm9260.c
clk-aspeed.c
clk-aspeed.h
clk-ast2600.c
clk-axi-clkgen.c
clk-axm5516.c
clk-bd718x7.c
clk-bm1880.c
clk-bulk.c
clk-cdce706.c
clk-cdce925.c
clk-clps711x.c
clk-composite.c
clk-conf.c
clk-cs2000-cp.c
clk-devres.c
clk-divider.c
clk-en7523.c
clk-fixed-factor.c
clk-fixed-mmio.c
clk-fixed-rate.c
clk-fractional-divider.c
clk-fractional-divider.h
clk-fractional-divider_test.c
clk-fsl-flexspi.c
clk-fsl-sai.c
clk-gate.c
clk-gate_test.c
clk-gemini.c
clk-gpio.c
clk-hi655x.c
clk-highbank.c
clk-hsdk-pll.c
clk-k210.c
clk-lan966x.c
clk-lmk04832.c
clk-lochnagar.c
clk-loongson1.c
clk-loongson2.c
clk-max9485.c
clk-max77686.c
clk-milbeaut.c
clk-moxart.c
clk-multiplier.c
clk-mux.c
clk-nomadik.c
clk-npcm7xx.c
clk-nspire.c
clk-palmas.c
clk-plldig.c
clk-pwm.c
clk-qoriq.c
clk-renesas-pcie.c clk: rs9: Add support for 9FGV0841 2023-12-17 15:26:24 -08:00
clk-rk808.c
clk-s2mps11.c
clk-scmi.c
clk-scpi.c
clk-si514.c
clk-si521xx.c
clk-si544.c
clk-si570.c
clk-si5341.c clk: si5341: fix an error code problem in si5341_output_clk_set_rate 2023-12-17 17:46:42 -08:00
clk-si5351.c clk: si5351: allow PLLs to be adjusted without reset 2023-12-17 22:31:36 -08:00
clk-si5351.h
clk-sp7021.c clk: sp7021: fix return value check in sp7021_clk_probe() 2023-12-16 17:10:17 -08:00
clk-sparx5.c
clk-stm32f4.c
clk-stm32h7.c
clk-tps68470.c
clk-twl.c
clk-twl6040.c
clk-versaclock3.c clk: versaclock3: Drop ret variable 2023-12-17 15:56:14 -08:00
clk-versaclock5.c
clk-versaclock7.c
clk-vt8500.c
clk-wm831x.c
clk-xgene.c
clk.c clk: Fix clk_core_get NULL dereference 2024-03-26 18:17:19 -04:00
clk.h
clk_test.c
clkdev.c