WSL2-Linux-Kernel/drivers/clk/sunxi
Yang Yingliang 7356c1f0ae clk: sunxi: sun9i-mmc: check return value after calling platform_get_resource()
[ Upstream commit f58ca215cd ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-05-09 09:14:37 +02:00
..
Kconfig
Makefile
clk-a10-codec.c
clk-a10-hosc.c
clk-a10-mod1.c
clk-a10-pll2.c
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
clk-factors.c
clk-factors.h
clk-mod0.c clk: sunxi: clk-mod0: Demote non-conformant kernel-doc header 2021-01-20 10:58:29 +01:00
clk-simple-gates.c
clk-sun4i-display.c
clk-sun4i-pll3.c
clk-sun4i-tcon-ch1.c
clk-sun6i-apb0-gates.c
clk-sun6i-apb0.c
clk-sun6i-ar100.c clk: sunxi: Demote non-conformant kernel-doc headers 2021-03-08 16:47:55 +01:00
clk-sun8i-apb0.c
clk-sun8i-bus-gates.c
clk-sun8i-mbus.c
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-sun9i-mmc.c clk: sunxi: sun9i-mmc: check return value after calling platform_get_resource() 2022-05-09 09:14:37 +02:00
clk-sunxi.c
clk-usb.c clk: sunxi: Demote non-conformant kernel-doc headers 2021-03-08 16:47:55 +01:00