lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220426131539.388382-1-yangyingliang@huawei.com>
Date:   Tue, 26 Apr 2022 21:15:39 +0800
From:   Yang Yingliang <yangyingliang@...wei.com>
To:     <linux-kernel@...r.kernel.org>, <linux-clk@...r.kernel.org>
CC:     <mturquette@...libre.com>, <sboyd@...nel.org>, <nbd@....name>,
        <matthias.bgg@...il.com>
Subject: [PATCH -next] clk: en7523: fix wrong pointer check in en7523_clk_probe()

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@...wei.com>
Signed-off-by: Yang Yingliang <yangyingliang@...wei.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ