[PATCH] clk: sunxi: sun9i-mmc: check return value after calling platform_get_resource()

Jernej Škrabec jernej.skrabec at gmail.com
Mon Apr 25 10:59:37 PDT 2022


Dne sobota, 23. april 2022 ob 21:45:05 CEST je Samuel Holland napisal(a):
> On 4/21/22 8:43 AM, Yang Yingliang wrote:
> > It will cause null-ptr-deref if platform_get_resource() returns NULL,
> > we need check the return value.
> > 
> > Fixes: 7a6fca879f59 ("clk: sunxi: Add driver for A80 MMC config clocks/
resets")
> > Signed-off-by: Yang Yingliang <yangyingliang at huawei.com>
> 
> Reviewed-by: Samuel Holland <samuel at sholland.org>
> 
> 

Applied to sunxi/clk-fixes-for-5.18, thanks!

Best regards,
Jernej





More information about the linux-arm-kernel mailing list