* [PATCH -next] clk: en7523: fix wrong pointer check in en7523_clk_probe()
@ 2022-04-26 13:15 Yang Yingliang
2022-04-26 15:46 ` Felix Fietkau
2022-04-26 18:17 ` Stephen Boyd
0 siblings, 2 replies; 3+ messages in thread
From: Yang Yingliang @ 2022-04-26 13:15 UTC (permalink / raw)
To: linux-kernel, linux-clk; +Cc: mturquette, sboyd, nbd, matthias.bgg
Check the real return value of devm_platform_ioremap_resource()
in en7523_clk_probe().
Fixes: 1e6273179190 ("clk: en7523: Add clock driver for Airoha EN7523 SoC")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
drivers/clk/clk-en7523.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/clk-en7523.c b/drivers/clk/clk-en7523.c
index 076a70c2e173..29f0126cbd05 100644
--- a/drivers/clk/clk-en7523.c
+++ b/drivers/clk/clk-en7523.c
@@ -314,7 +314,7 @@ static int en7523_clk_probe(struct platform_device *pdev)
return PTR_ERR(base);
np_base = devm_platform_ioremap_resource(pdev, 1);
- if (IS_ERR(base))
+ if (IS_ERR(np_base))
return PTR_ERR(np_base);
clk_data = devm_kzalloc(&pdev->dev,
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH -next] clk: en7523: fix wrong pointer check in en7523_clk_probe()
2022-04-26 13:15 [PATCH -next] clk: en7523: fix wrong pointer check in en7523_clk_probe() Yang Yingliang
@ 2022-04-26 15:46 ` Felix Fietkau
2022-04-26 18:17 ` Stephen Boyd
1 sibling, 0 replies; 3+ messages in thread
From: Felix Fietkau @ 2022-04-26 15:46 UTC (permalink / raw)
To: Yang Yingliang, linux-kernel, linux-clk; +Cc: mturquette, sboyd, matthias.bgg
On 26.04.22 15:15, Yang Yingliang wrote:
> Check the real return value of devm_platform_ioremap_resource()
> in en7523_clk_probe().
>
> Fixes: 1e6273179190 ("clk: en7523: Add clock driver for Airoha EN7523 SoC")
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Acked-by: Felix Fietkau <nbd@nbd.name>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -next] clk: en7523: fix wrong pointer check in en7523_clk_probe()
2022-04-26 13:15 [PATCH -next] clk: en7523: fix wrong pointer check in en7523_clk_probe() Yang Yingliang
2022-04-26 15:46 ` Felix Fietkau
@ 2022-04-26 18:17 ` Stephen Boyd
1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2022-04-26 18:17 UTC (permalink / raw)
To: Yang Yingliang, linux-clk, linux-kernel; +Cc: mturquette, nbd, matthias.bgg
Quoting Yang Yingliang (2022-04-26 06:15:39)
> Check the real return value of devm_platform_ioremap_resource()
> in en7523_clk_probe().
>
> Fixes: 1e6273179190 ("clk: en7523: Add clock driver for Airoha EN7523 SoC")
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-26 18:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-26 13:15 [PATCH -next] clk: en7523: fix wrong pointer check in en7523_clk_probe() Yang Yingliang
2022-04-26 15:46 ` Felix Fietkau
2022-04-26 18:17 ` Stephen Boyd
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.