Alok Tiwari
0cbbf2741f
clk: nxp: Fix pll0 rate check condition in LPC18xx CGU driver
...
[ Upstream commit 1624dead9a4d288a594fdf19735ebfe4bb567cb8 ]
The conditional check for the PLL0 multiplier 'm' used a logical AND
instead of OR, making the range check ineffective. This patch replaces
&& with || to correctly reject invalid values of 'm' that are either
less than or equal to 0 or greater than LPC18XX_PLL0_MSEL_MAX.
This ensures proper bounds checking during clk rate setting and rounding.
Fixes: b04e0b8fd5 ("clk: add lpc18xx cgu clk driver")
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
[sboyd@kernel.org: 'm' is unsigned so remove < condition]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-10-29 13:59:51 +01:00
..
actions
analogbits
clk: analogbits: Fix incorrect calculation of vco rate delta
2025-03-13 12:42:55 +01:00
at91
axis
axs10x
bcm
clk: bcm: bcm53573: fix OF node leak in init
2024-11-08 16:20:44 +01:00
berlin
davinci
clk: davinci: Add NULL check in davinci_lpsc_clk_register()
2025-08-28 16:21:20 +02:00
h8300
hisilicon
clk: hi6220: use CLK_OF_DECLARE_DRIVER
2024-09-12 11:03:51 +02:00
imgtec
imx
clk: imx: Select MXC_CLK for CLK_IMX8QXP
2023-11-20 10:30:10 +01:00
ingenic
keystone
clk: keystone: pll: fix a couple NULL vs IS_ERR() checks
2023-11-20 10:30:10 +01:00
loongson1
mediatek
clk: mediatek: clk-mt2701: Add check for mtk_alloc_clk_data
2023-11-20 10:30:11 +01:00
meson
clk: amlogic: g12a: fix mmc A peripheral clock
2025-04-10 14:29:41 +02:00
microchip
mmp
clk: mmp: pxa168: Fix memory leak in pxa168_clk_init()
2024-02-23 08:25:01 +01:00
mvebu
mxs
nxp
clk: nxp: Fix pll0 rate check condition in LPC18xx CGU driver
2025-10-29 13:59:51 +01:00
pistachio
pxa
qcom
clk: qcom: clk-rpmh: prevent integer overflow in recalc_rate
2025-03-13 12:43:07 +01:00
renesas
clk: renesas: cpg-mssr: Remove superfluous check in resume code
2023-03-11 16:43:51 +01:00
rockchip
clk: rockchip: rk3036: mark ddrphy as critical
2025-06-27 11:02:55 +01:00
samsung
sifive
sirf
socfpga
spear
sprd
st
sunxi
sunxi-ng
clk: sunxi-ng: v3s: Fix de clock definition
2025-08-28 16:21:20 +02:00
tegra
clk: tegra: fix error return case for recalc_rate
2023-10-10 21:46:39 +02:00
ti
clk: ti: dra7-atl: Fix leak of of_nodes
2024-11-08 16:20:31 +01:00
uniphier
ux500
versatile
x86
zte
zynq
zynqmp
drivers: clk: zynqmp: calculate closest mux rate
2024-01-25 14:34:28 -08:00
clk-asm9260.c
clk-aspeed.c
clk-aspeed.h
clk-ast2600.c
clk-axi-clkgen.c
clk: clk-axi-clkgen: make sure to enable the AXI bus clock
2024-12-14 19:44:31 +01:00
clk-axm5516.c
clk-bd718x7.c
clk-bulk.c
clk-cdce706.c
clk-cdce925.c
clk: cdce925: check return value of kasprintf()
2023-07-27 08:37:15 +02:00
clk-clps711x.c
clk-composite.c
clk-conf.c
clk: add missing of_node_put() in "assigned-clocks" property parsing
2023-05-17 11:35:51 +02:00
clk-cs2000-cp.c
clk-devres.c
clk: Fix slab-out-of-bounds error in devm_clk_release()
2023-08-30 16:27:25 +02:00
clk-divider.c
clk-efm32gg.c
clk-fixed-factor.c
clk-fixed-mmio.c
clk-fixed-rate.c
clk-fractional-divider.c
clk-gate.c
treewide: Remove uninitialized_var() usage
2023-06-09 10:29:01 +02:00
clk-gemini.c
clk-gpio.c
clk-hi655x.c
clk-highbank.c
clk-hsdk-pll.c
clk-lochnagar.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: npcm7xx: Fix incorrect kfree
2023-11-20 10:30:10 +01:00
clk-nspire.c
clk-oxnas.c
clk-palmas.c
clk-pwm.c
clk-qoriq.c
clk-rk808.c
clk-s2mps11.c
clk-scmi.c
clk: scmi: Free scmi_clk allocated when the clocks with invalid info are skipped
2023-11-20 10:30:12 +01:00
clk-scpi.c
clk-si514.c
clk-si544.c
clk-si570.c
clk-si5341.c
clk: si5341: fix an error code problem in si5341_output_clk_set_rate
2024-01-25 14:34:28 -08:00
clk-si5351.c
clk-si5351.h
clk-stm32f4.c
clk-stm32h7.c
clk-stm32mp1.c
clk-tango4.c
clk-twl6040.c
clk-u300.c
clk-versaclock5.c
clk-vt8500.c
clk-wm831x.c
clk-xgene.c
clk.c
clk: check for disabled clock-provider in of_clk_get_hw_from_clkspec()
2025-05-02 07:39:28 +02:00
clk.h
clkdev.c
Kconfig
clk: fixed-mmio: make COMMON_CLK_FIXED_MMIO depend on HAS_IOMEM
2023-09-23 10:59:39 +02:00
Makefile