linux-stable/drivers/clk
Jiasheng Jiang 6fccee2af4 clk: mediatek: clk-mt2701: Add check for mtk_alloc_clk_data
[ Upstream commit 0d6e24b422 ]

Add the check for the return value of mtk_alloc_clk_data() in order to
avoid NULL pointer dereference.

Fixes: e986211827 ("clk: mediatek: Add MT2701 clock support")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20230901024658.23405-1-jiasheng@iscas.ac.cn
Reviewed-by: Markus Schneider-Pargmann <msp@baylibre.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 10:27:33 +01:00
..
at91 clk: at91: generated: consider range when calculating best rate 2022-05-25 08:41:20 +02:00
axis
axs10x
bcm clk: bcm2835: fix bcm2835_clock_rate_from_divisor declaration 2022-10-26 13:17:07 +02:00
berlin
h8300
hisilicon clk: hi3660: Mark clk_gate_ufs_subsys as critical 2019-05-25 18:25:20 +02:00
imgtec clk: boston: unregister clks on failure in clk_boston_setup() 2019-11-06 12:42:55 +01:00
imx clk: vf610: fix refcount leak in vf610_clocks_init() 2020-01-27 14:46:10 +01:00
ingenic clk: ingenic: Fix doc of ingenic_cgu_div_info 2019-03-23 14:35:23 +01:00
keystone clk: keystone: pll: fix a couple NULL vs IS_ERR() checks 2023-11-20 10:27:33 +01:00
loongson1 clk: loongson1: Terminate clk_div_table with sentinel element 2022-04-20 09:08:20 +02:00
mediatek clk: mediatek: clk-mt2701: Add check for mtk_alloc_clk_data 2023-11-20 10:27:33 +01:00
meson clk: meson: clk-pll: fix initializing the old rate (fallback) for a PLL 2021-03-03 18:22:44 +01:00
microchip
mmp clk: mmp2: Fix the order of timer mux parents 2020-02-05 14:18:18 +00:00
mvebu clk: kirkwood: Fix a clocking boot regression 2021-09-22 11:45:23 +02:00
mxs
nxp
pistachio
pxa clk: pxa: fix one of the pxa RTC clocks 2020-01-04 13:59:45 +01:00
qcom clk: qcom: clk-rcg2: Fix clock rate overflow for high parent frequencies 2023-11-20 10:27:33 +01:00
renesas clk: renesas: r8a77995: Add ZA2 clock 2021-07-20 16:17:43 +02:00
rockchip clk: rockchip: rk3399: allow clk_cifout to force clk_cifout_src to reparent 2023-05-17 11:11:46 +02:00
samsung clk: samsung: Fix memory leak in _samsung_clk_register_pll() 2023-01-18 09:26:17 +01:00
sirf clk: clk-atlas6: fix return value check in atlas6_clk_init() 2020-08-21 09:48:21 +02:00
socfpga clk: socfpga: arria10: Fix memory leak of socfpga_clk on error return 2021-05-22 10:57:19 +02:00
spear
st clk: st: Fix memory leak in st_of_quadfs_setup() 2023-01-18 09:26:33 +01:00
sunxi clk: sunxi: sun9i-mmc: check return value after calling platform_get_resource() 2022-05-12 12:17:07 +02:00
sunxi-ng clk: sunxi-ng: Modify mismatched function name 2023-09-23 10:46:56 +02:00
tegra clk: tegra: fix error return case for recalc_rate 2023-10-10 21:43:39 +02:00
ti clk: ti: dra7-atl: Fix reference leak in of_dra7_atl_clk_probe 2022-10-26 13:17:07 +02:00
uniphier clk: uniphier: Fix fixed-rate initialization 2022-04-20 09:08:09 +02:00
ux500
versatile
x86 clk: x86: Add system specific quirk to mark clocks as critical 2019-05-08 07:20:53 +02:00
zte clk: zx296718: Don't reference clk_init_data after registration 2019-10-07 18:55:01 +02:00
zynq
Kconfig
Makefile clk: keystone: Enable TISCI clocks if K3_ARCH 2019-11-24 08:22:58 +01:00
clk-asm9260.c
clk-axi-clkgen.c
clk-axm5516.c
clk-bulk.c
clk-cdce706.c
clk-cdce925.c
clk-clps711x.c clk: clps711x: Terminate clk_div_table with sentinel element 2022-04-20 09:08:20 +02:00
clk-composite.c
clk-conf.c clk: add missing of_node_put() in "assigned-clocks" property parsing 2023-05-17 11:11:45 +02:00
clk-cs2000-cp.c
clk-devres.c
clk-divider.c
clk-efm32gg.c
clk-fixed-factor.c clk: fixed-factor: fix of_node_get-put imbalance 2018-11-27 16:10:48 +01:00
clk-fixed-rate.c
clk-fractional-divider.c clk: fractional-divider: check parent rate only if flag is set 2019-04-05 22:31:31 +02:00
clk-gate.c treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
clk-gemini.c
clk-gpio.c
clk-hi655x.c
clk-highbank.c clk: highbank: fix refcount leak in hb_clk_init() 2020-01-27 14:46:09 +01:00
clk-hsdk-pll.c
clk-max77686.c
clk-moxart.c
clk-multiplier.c
clk-mux.c
clk-nomadik.c
clk-nspire.c
clk-oxnas.c clk: oxnas: Hold reference returned by of_get_parent() 2022-10-26 13:17:03 +02:00
clk-palmas.c
clk-pwm.c
clk-qoriq.c clk: qoriq: fix refcount leak in clockgen_init() 2020-01-27 14:46:09 +01:00
clk-rk808.c
clk-s2mps11.c clk: s2mps11: Fix a resource leak in error handling paths in the probe function 2020-12-29 13:47:03 +01:00
clk-scpi.c
clk-si514.c
clk-si570.c
clk-si5351.c
clk-si5351.h
clk-stm32f4.c clk: stm32f4: fix post divisor setup for I2S/SAI PLLs 2021-08-15 13:03:28 +02:00
clk-stm32h7.c
clk-tango4.c
clk-twl6040.c clk: clk-twl6040: Fix imprecise external abort for pdmclk 2019-03-23 14:35:23 +01:00
clk-u300.c
clk-versaclock5.c clk: vc5: Abort clock configuration without upstream clock 2019-03-05 17:57:58 +01:00
clk-vt8500.c
clk-wm831x.c
clk-xgene.c
clk.c clk: fix build warning for orphan_list 2021-09-22 11:45:15 +02:00
clk.h
clkdev.c