android_kernel_xiaomi_sm8350/drivers/clk/mediatek
Jiasheng Jiang d1461f0c9c 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 10:30:11 +01:00
..
clk-apmixed.c
clk-cpumux.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
clk-cpumux.h
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 Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
clk-mt2701-eth.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -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 Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
clk-mt2701-img.c
clk-mt2701-mm.c
clk-mt2701-vdec.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
clk-mt2701.c clk: mediatek: clk-mt2701: Add check for mtk_alloc_clk_data 2023-11-20 10:30:11 +01:00
clk-mt2712-bdp.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
clk-mt2712-img.c
clk-mt2712-jpgdec.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
clk-mt2712-mfg.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
clk-mt2712-mm.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
clk-mt2712-vdec.c
clk-mt2712-venc.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
clk-mt2712.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
clk-mt6779-aud.c clk: mediatek: Add MT6779 clock support 2019-09-09 09:37:30 -07:00
clk-mt6779-cam.c
clk-mt6779-img.c
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: mediatek: Add MT6779 clock support 2019-09-09 09:37:30 -07:00
clk-mt6779-vdec.c
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 10:30:10 +01:00
clk-mt6797-img.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
clk-mt6797-mm.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
clk-mt6797-vdec.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
clk-mt6797-venc.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
clk-mt6797.c clk: mediatek: clk-mt6797: Add check for mtk_alloc_clk_data 2023-11-20 10:30:10 +01:00
clk-mt7622-aud.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
clk-mt7622-eth.c
clk-mt7622-hif.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
clk-mt7622.c
clk-mt7629-eth.c clk: mediatek: clk-mt7629-eth: Add check for mtk_alloc_clk_data 2023-11-20 10:30:11 +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 10:30:11 +01:00
clk-mt8135.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
clk-mt8173.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
clk-mt8183-audio.c
clk-mt8183-cam.c clk: mediatek: Add MT8183 clock support 2019-04-11 13:29:19 -07:00
clk-mt8183-img.c
clk-mt8183-ipu0.c
clk-mt8183-ipu1.c clk: mediatek: Add MT8183 clock support 2019-04-11 13:29:19 -07:00
clk-mt8183-ipu_adl.c
clk-mt8183-ipu_conn.c
clk-mt8183-mfgcfg.c
clk-mt8183-mm.c clk: mediatek: Add MT8183 clock support 2019-04-11 13:29:19 -07: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 We have a small collection of core framework updates this time, mostly around 2019-09-20 15:45: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-mtk.c
clk-mtk.h
clk-mux.c clk: mediatek: assign the initial value to clk_init_data of mtk_mux 2020-06-22 09:31:19 +02:00
clk-mux.h clk: mediatek: Add new clkmux register API 2019-04-11 13:12:40 -07:00
clk-pll.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
Kconfig clk: mediatek: Add MT6779 clock support 2019-09-09 09:37:30 -07:00
Makefile clk: mediatek: Add MT6779 clock support 2019-09-09 09:37:30 -07:00
reset.c