WSL2-Linux-Kernel/drivers/clk/mediatek
Jiasheng Jiang d1175cf4bd clk: mediatek: clk-mt2701: Add check for mtk_alloc_clk_data
[ Upstream commit 0d6e24b422a2166a9297a8286ff2e6ab9a5e8cd3 ]

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 11:08:18 +01:00
..
Kconfig clk: mediatek: make COMMON_CLK_MT8167* depend on COMMON_CLK_MT8167 2021-07-27 11:46:27 -07:00
Makefile clk: mediatek: Add MT8192 vencsys clock support 2021-07-27 10:53:10 -07:00
clk-apmixed.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
clk-cpumux.c clk: mediatek: Get regmap without syscon compatible check 2021-07-27 10:53:06 -07:00
clk-cpumux.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
clk-gate.c clk: mediatek: Register clock gate with device 2019-09-17 10:22:49 -07:00
clk-gate.h clk: mediatek: Register clock gate with device 2019-09-17 10:22:49 -07:00
clk-mt2701-aud.c clk: mediatek: add audsys support for MT2701 2018-03-20 00:24:42 -07:00
clk-mt2701-bdp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
clk-mt2701-eth.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
clk-mt2701-g3d.c clk: mediatek: add g3dsys support for MT2701 and MT7623 2018-05-15 15:21:36 -07:00
clk-mt2701-hif.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
clk-mt2701-img.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
clk-mt2701-mm.c clk / soc: mediatek: Bind clock and gpu driver for mt2701 2020-05-20 12:47:02 +02:00
clk-mt2701-vdec.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
clk-mt2701.c clk: mediatek: clk-mt2701: Add check for mtk_alloc_clk_data 2023-11-20 11:08:18 +01:00
clk-mt2712-bdp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
clk-mt2712-img.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
clk-mt2712-jpgdec.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
clk-mt2712-mfg.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
clk-mt2712-mm.c clk / soc: mediatek: Bind clock and gpu driver for mt2712 2020-05-20 12:47:02 +02:00
clk-mt2712-vdec.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
clk-mt2712-venc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
clk-mt2712.c clk: mediatek: mt2712: use devm_platform_ioremap_resource() to simplify code 2019-10-16 16:17:32 -07:00
clk-mt6765-audio.c clk: mediatek: Add MT6765 clock support 2020-05-28 21:23:18 -07:00
clk-mt6765-cam.c clk: mediatek: Add MT6765 clock support 2020-05-28 21:23:18 -07:00
clk-mt6765-img.c clk: mediatek: Add MT6765 clock support 2020-05-28 21:23:18 -07:00
clk-mt6765-mipi0a.c clk: mediatek: Add MT6765 clock support 2020-05-28 21:23:18 -07:00
clk-mt6765-mm.c clk: mediatek: Add MT6765 clock support 2020-05-28 21:23:18 -07:00
clk-mt6765-vcodec.c clk: mediatek: Add MT6765 clock support 2020-05-28 21:23:18 -07:00
clk-mt6765.c clk: mediatek: clk-mt6765: Add check for mtk_alloc_clk_data 2023-11-20 11:08:18 +01:00
clk-mt6779-aud.c clk: mediatek: Add MT6779 clock support 2019-09-09 09:37:30 -07:00
clk-mt6779-cam.c clk: mediatek: Add MT6779 clock support 2019-09-09 09:37:30 -07:00
clk-mt6779-img.c clk: mediatek: Add MT6779 clock support 2019-09-09 09:37:30 -07:00
clk-mt6779-ipe.c clk: mediatek: Add MT6779 clock support 2019-09-09 09:37:30 -07:00
clk-mt6779-mfg.c clk: mediatek: Add MT6779 clock support 2019-09-09 09:37:30 -07:00
clk-mt6779-mm.c clk/soc: mediatek: mt6779: Bind clock driver from platform device 2020-05-20 12:49:35 +02:00
clk-mt6779-vdec.c clk: mediatek: Add MT6779 clock support 2019-09-09 09:37:30 -07:00
clk-mt6779-venc.c clk: mediatek: Add MT6779 clock support 2019-09-09 09:37:30 -07:00
clk-mt6779.c clk: mediatek: clk-mt6779: Add check for mtk_alloc_clk_data 2023-11-20 11:08:18 +01:00
clk-mt6797-img.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
clk-mt6797-mm.c clk/soc: mediatek: mt6797: Bind clock driver from platform device 2020-05-20 12:49:35 +02:00
clk-mt6797-vdec.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
clk-mt6797-venc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
clk-mt6797.c clk: mediatek: clk-mt6797: Add check for mtk_alloc_clk_data 2023-11-20 11:08:18 +01:00
clk-mt7622-aud.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
clk-mt7622-eth.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
clk-mt7622-hif.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
clk-mt7622.c clk: mediatek: mt7622: use devm_platform_ioremap_resource() to simplify code 2019-10-16 16:17:42 -07:00
clk-mt7629-eth.c clk: mediatek: clk-mt7629-eth: Add check for mtk_alloc_clk_data 2023-11-20 11:08:18 +01:00
clk-mt7629-hif.c clk: mediatek: add clock support for MT7629 SoC 2018-11-29 22:52:05 -08:00
clk-mt7629.c clk: mediatek: clk-mt7629: Add check for mtk_alloc_clk_data 2023-11-20 11:08:18 +01:00
clk-mt8135.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
clk-mt8167-aud.c clk: mediatek: Add MT8167 clock support 2020-10-13 15:46:01 -07:00
clk-mt8167-img.c clk: mediatek: Add MT8167 clock support 2020-10-13 15:46:01 -07:00
clk-mt8167-mfgcfg.c clk: mediatek: Add MT8167 clock support 2020-10-13 15:46:01 -07:00
clk-mt8167-mm.c clk: mediatek: Add MT8167 clock support 2020-10-13 15:46:01 -07:00
clk-mt8167-vdec.c clk: mediatek: Add MT8167 clock support 2020-10-13 15:46:01 -07:00
clk-mt8167.c clk: mediatek: Add MT8167 clock support 2020-10-13 15:46:01 -07:00
clk-mt8173-mm.c clk / soc: mediatek: Move mt8173 MMSYS to platform driver 2020-04-13 13:01:16 +02:00
clk-mt8173.c clk / soc: mediatek: Move mt8173 MMSYS to platform driver 2020-04-13 13:01:16 +02:00
clk-mt8183-audio.c clk: mediatek: Add MT8183 clock support 2019-04-11 13:29:19 -07:00
clk-mt8183-cam.c clk: mediatek: Add MT8183 clock support 2019-04-11 13:29:19 -07:00
clk-mt8183-img.c clk: mediatek: Add MT8183 clock support 2019-04-11 13:29:19 -07:00
clk-mt8183-ipu0.c clk: mediatek: Add MT8183 clock support 2019-04-11 13:29:19 -07:00
clk-mt8183-ipu1.c clk: mediatek: Add MT8183 clock support 2019-04-11 13:29:19 -07:00
clk-mt8183-ipu_adl.c clk: mediatek: Add MT8183 clock support 2019-04-11 13:29:19 -07:00
clk-mt8183-ipu_conn.c clk: mediatek: Add MT8183 clock support 2019-04-11 13:29:19 -07:00
clk-mt8183-mfgcfg.c clk: mediatek: mt8183: mfgcfg: Propagate rate changes to parent 2022-10-26 12:35:18 +02:00
clk-mt8183-mm.c clk/soc: mediatek: mt8183: Bind clock driver from platform device 2020-05-20 12:49:35 +02:00
clk-mt8183-vdec.c clk: mediatek: Add MT8183 clock support 2019-04-11 13:29:19 -07:00
clk-mt8183-venc.c clk: mediatek: Add MT8183 clock support 2019-04-11 13:29:19 -07:00
clk-mt8183.c clk: mediatek: mt8183: use devm_platform_ioremap_resource() to simplify code 2019-10-16 16:17:40 -07:00
clk-mt8192-aud.c clk: mediatek: Add MT8192 audio clock support 2021-07-27 10:53:07 -07:00
clk-mt8192-cam.c clk: mediatek: Add MT8192 camsys clock support 2021-07-27 10:53:07 -07:00
clk-mt8192-img.c clk: mediatek: Add MT8192 imgsys clock support 2021-07-27 10:53:08 -07:00
clk-mt8192-imp_iic_wrap.c clk: mediatek: Add MT8192 imp i2c wrapper clock support 2021-07-27 10:53:08 -07:00
clk-mt8192-ipe.c clk: mediatek: Add MT8192 ipesys clock support 2021-07-27 10:53:08 -07:00
clk-mt8192-mdp.c clk: mediatek: Add MT8192 mdpsys clock support 2021-07-27 10:53:09 -07:00
clk-mt8192-mfg.c clk: mediatek: Add MT8192 mfgcfg clock support 2021-07-27 10:53:09 -07:00
clk-mt8192-mm.c clk: mediatek: Add MT8192 mmsys clock support 2021-07-27 10:53:09 -07:00
clk-mt8192-msdc.c clk: mediatek: Add MT8192 msdc clock support 2021-07-27 10:53:09 -07:00
clk-mt8192-scp_adsp.c clk: mediatek: Add MT8192 scp adsp clock support 2021-07-27 10:53:10 -07:00
clk-mt8192-vdec.c clk: mediatek: Add MT8192 vdecsys clock support 2021-07-27 10:53:10 -07:00
clk-mt8192-venc.c clk: mediatek: Add MT8192 vencsys clock support 2021-07-27 10:53:10 -07:00
clk-mt8192.c clk: mediatek: Add MT8192 basic clocks support 2021-07-27 10:53:07 -07:00
clk-mt8516-aud.c clk: mediatek: add audsys clock driver for MT8516 2019-06-06 15:56:18 -07:00
clk-mt8516.c clk: mediatek: mt8516: Remove unused variable 2019-06-07 11:54:47 -07:00
clk-mtk.c clk: mediatek: Add mtk_clk_simple_probe() to simplify clock providers 2021-07-27 10:53:07 -07:00
clk-mtk.h clk: mediatek: Add mtk_clk_simple_probe() to simplify clock providers 2021-07-27 10:53:07 -07:00
clk-mux.c clk: mediatek: Add MT8192 basic clocks support 2021-07-27 10:53:07 -07:00
clk-mux.h clk: mediatek: Add MT8192 basic clocks support 2021-07-27 10:53:07 -07:00
clk-pll.c clk: mediatek: Add configurable enable control to mtk_pll_data 2021-07-27 10:53:06 -07:00
reset.c clk: mediatek: reset: Fix written reset bit offset 2022-08-17 14:23:43 +02:00