WSL2-Linux-Kernel/drivers/clk/sunxi
Yang Yingliang f58ca215cd clk: sunxi: sun9i-mmc: check return value after calling platform_get_resource()
It will cause null-ptr-deref if platform_get_resource() returns NULL,
we need check the return value.

Fixes: 7a6fca879f ("clk: sunxi: Add driver for A80 MMC config clocks/resets")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20220421134308.2885094-1-yangyingliang@huawei.com
2022-04-25 19:50:53 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile clk: sunxi: Add Kconfig options 2019-03-21 10:01:54 +01:00
clk-a10-codec.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
clk-a10-hosc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
clk-a10-mod1.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
clk-a10-pll2.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
clk-a10-ve.c clk: sunxi: clk-a10-ve: Demote obvious kernel-doc abuse 2021-01-20 10:56:29 +01:00
clk-a20-gmac.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
clk-factors.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
clk-factors.h clk: sunxi: Use CLK_IS_CRITICAL flag for critical clks 2018-01-04 15:13:24 -08:00
clk-mod0.c clk: sunxi: clk-mod0: Make use of the helper function devm_platform_ioremap_resource() 2021-09-13 09:03:21 +02:00
clk-simple-gates.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
clk-sun4i-display.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
clk-sun4i-pll3.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
clk-sun4i-tcon-ch1.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
clk-sun6i-apb0-gates.c clk: sunxi: sun6i-apb0-gates: Make use of the helper function devm_platform_ioremap_resource() 2021-09-13 09:03:23 +02:00
clk-sun6i-apb0.c clk: sunxi: sun6i-apb0: Make use of the helper function devm_platform_ioremap_resource() 2021-09-13 09:03:23 +02:00
clk-sun6i-ar100.c clk: sunxi: sun6i-ar100: Make use of the helper function devm_platform_ioremap_resource() 2021-09-13 09:03:24 +02:00
clk-sun8i-apb0.c clk: sunxi: sun8i-apb0: Make use of the helper function devm_platform_ioremap_resource() 2021-09-13 09:03:24 +02:00
clk-sun8i-bus-gates.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
clk-sun8i-mbus.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
clk-sun9i-core.c clk: sunxi: Demote non-conformant kernel-doc headers 2021-03-08 16:47:55 +01:00
clk-sun9i-cpus.c clk: Remove io.h from clk-provider.h 2019-05-15 13:21:37 -07:00
clk-sun9i-mmc.c clk: sunxi: sun9i-mmc: check return value after calling platform_get_resource() 2022-04-25 19:50:53 +02:00
clk-sunxi.c clk: sunxi: clk-sunxi: Demote a bunch of non-conformant kernel-doc headers 2021-01-20 10:56:22 +01:00
clk-usb.c clk: sunxi: Demote non-conformant kernel-doc headers 2021-03-08 16:47:55 +01:00