Thread (5 messages) 5 messages, 4 authors, 2019-01-09

Re: [PATCH -next] clk: imx: fix potential NULL dereference in imx8qxp_lpcg_clk_probe()

From: Fabio Estevam <festevam@gmail.com>
Date: 2018-12-18 09:48:50
Also in: kernel-janitors, linux-clk

Hi Wei,

On Tue, Dec 18, 2018 at 4:36 AM Wei Yongjun [off-list ref] wrote:
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
+       if (!res)
+               return -EINVAL;
        base = devm_ioremap(dev, res->start, resource_size(res));
Wouldn't it be better to use devm_ioremap_resource(), which does the NULL check?

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help