All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] fix possible object reference leaks in cpufreq
@ 2019-04-01  1:37 Wen Yang
  2019-04-01  1:37   ` Wen Yang
                   ` (6 more replies)
  0 siblings, 7 replies; 40+ messages in thread
From: Wen Yang @ 2019-04-01  1:37 UTC (permalink / raw)
  To: linux-kernel; +Cc: wang.yi59, Wen Yang

The call to of_get_cpu_node/of_find_compatible_node/of_parse_phandle...
returns a node pointer with refcount incremented thus it must be
explicitly decremented after the last usage.

This patch series fix those possible object reference leaks in cpufreq.

Wen Yang (7):
  cpufreq: ap806: fix possible object reference leak
  cpufreq: imx6q: fix possible object reference leak
  cpufreq: kirkwood: fix possible object reference leak
  cpufreq: maple: fix possible object reference leak
  cpufreq/pasemi: fix possible object reference leak
  cpufreq: pmac32: fix possible object reference leak
  cpufreq: ppc_cbe: fix possible object reference leak

 drivers/cpufreq/armada-8k-cpufreq.c |  1 +
 drivers/cpufreq/imx6q-cpufreq.c     |  4 ++--
 drivers/cpufreq/kirkwood-cpufreq.c  | 19 +++++++++++--------
 drivers/cpufreq/maple-cpufreq.c     |  2 +-
 drivers/cpufreq/pasemi-cpufreq.c    |  1 +
 drivers/cpufreq/pmac32-cpufreq.c    |  2 ++
 drivers/cpufreq/ppc_cbe_cpufreq.c   |  1 +
 7 files changed, 19 insertions(+), 11 deletions(-)

-- 
2.9.5


^ permalink raw reply	[flat|nested] 40+ messages in thread

* [PATCH 1/7] cpufreq: ap806: fix possible object reference leak
  2019-04-01  1:37 [PATCH 0/7] fix possible object reference leaks in cpufreq Wen Yang
  2019-04-01  1:37   ` Wen Yang
@ 2019-04-01  1:37   ` Wen Yang
  2019-04-01  1:37 ` [PATCH 3/7] cpufreq: kirkwood: " Wen Yang
                     ` (4 subsequent siblings)
  6 siblings, 0 replies; 40+ messages in thread
From: Wen Yang @ 2019-04-01  1:37 UTC (permalink / raw)
  To: linux-kernel
  Cc: wang.yi59, Wen Yang, Jason Cooper, Andrew Lunn, Gregory Clement,
	Sebastian Hesselbarth, Rafael J. Wysocki, Viresh Kumar,
	linux-arm-kernel, linux-pm

The call to of_find_compatible_node returns a node pointer with refcount
incremented thus it must be explicitly decremented after the last
usage.

Detected by coccinelle with the following warnings:
./drivers/cpufreq/armada-8k-cpufreq.c:187:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 130, but without a corresponding object release within this function.
./drivers/cpufreq/armada-8k-cpufreq.c:191:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 130, but without a corresponding object release within this function.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Gregory Clement <gregory.clement@bootlin.com>
Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
 drivers/cpufreq/armada-8k-cpufreq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/cpufreq/armada-8k-cpufreq.c b/drivers/cpufreq/armada-8k-cpufreq.c
index b3f4bd6..988ebc3 100644
--- a/drivers/cpufreq/armada-8k-cpufreq.c
+++ b/drivers/cpufreq/armada-8k-cpufreq.c
@@ -132,6 +132,7 @@ static int __init armada_8k_cpufreq_init(void)
 		of_node_put(node);
 		return -ENODEV;
 	}
+	of_node_put(node);
 
 	nb_cpus = num_possible_cpus();
 	freq_tables = kcalloc(nb_cpus, sizeof(*freq_tables), GFP_KERNEL);
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 40+ messages in thread

* [PATCH 1/7] cpufreq: ap806: fix possible object reference leak
@ 2019-04-01  1:37   ` Wen Yang
  0 siblings, 0 replies; 40+ messages in thread
From: Wen Yang @ 2019-04-01  1:37 UTC (permalink / raw)
  To: linux-kernel
  Cc: wang.yi59, Andrew Lunn, Jason Cooper, linux-pm, Viresh Kumar,
	Gregory Clement, Rafael J. Wysocki, Wen Yang, linux-arm-kernel,
	Sebastian Hesselbarth

The call to of_find_compatible_node returns a node pointer with refcount
incremented thus it must be explicitly decremented after the last
usage.

Detected by coccinelle with the following warnings:
./drivers/cpufreq/armada-8k-cpufreq.c:187:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 130, but without a corresponding object release within this function.
./drivers/cpufreq/armada-8k-cpufreq.c:191:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 130, but without a corresponding object release within this function.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Gregory Clement <gregory.clement@bootlin.com>
Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
 drivers/cpufreq/armada-8k-cpufreq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/cpufreq/armada-8k-cpufreq.c b/drivers/cpufreq/armada-8k-cpufreq.c
index b3f4bd6..988ebc3 100644
--- a/drivers/cpufreq/armada-8k-cpufreq.c
+++ b/drivers/cpufreq/armada-8k-cpufreq.c
@@ -132,6 +132,7 @@ static int __init armada_8k_cpufreq_init(void)
 		of_node_put(node);
 		return -ENODEV;
 	}
+	of_node_put(node);
 
 	nb_cpus = num_possible_cpus();
 	freq_tables = kcalloc(nb_cpus, sizeof(*freq_tables), GFP_KERNEL);
-- 
2.9.5

^ permalink raw reply related	[flat|nested] 40+ messages in thread

* [PATCH 1/7] cpufreq: ap806: fix possible object reference leak
@ 2019-04-01  1:37   ` Wen Yang
  0 siblings, 0 replies; 40+ messages in thread
From: Wen Yang @ 2019-04-01  1:37 UTC (permalink / raw)
  To: linux-kernel
  Cc: wang.yi59, Andrew Lunn, Jason Cooper, linux-pm, Viresh Kumar,
	Gregory Clement, Rafael J. Wysocki, Wen Yang, linux-arm-kernel,
	Sebastian Hesselbarth

The call to of_find_compatible_node returns a node pointer with refcount
incremented thus it must be explicitly decremented after the last
usage.

Detected by coccinelle with the following warnings:
./drivers/cpufreq/armada-8k-cpufreq.c:187:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 130, but without a corresponding object release within this function.
./drivers/cpufreq/armada-8k-cpufreq.c:191:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 130, but without a corresponding object release within this function.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Gregory Clement <gregory.clement@bootlin.com>
Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
 drivers/cpufreq/armada-8k-cpufreq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/cpufreq/armada-8k-cpufreq.c b/drivers/cpufreq/armada-8k-cpufreq.c
index b3f4bd6..988ebc3 100644
--- a/drivers/cpufreq/armada-8k-cpufreq.c
+++ b/drivers/cpufreq/armada-8k-cpufreq.c
@@ -132,6 +132,7 @@ static int __init armada_8k_cpufreq_init(void)
 		of_node_put(node);
 		return -ENODEV;
 	}
+	of_node_put(node);
 
 	nb_cpus = num_possible_cpus();
 	freq_tables = kcalloc(nb_cpus, sizeof(*freq_tables), GFP_KERNEL);
-- 
2.9.5


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 40+ messages in thread

* [PATCH 2/7] cpufreq: imx6q: fix possible object reference leak
  2019-04-01  1:37 [PATCH 0/7] fix possible object reference leaks in cpufreq Wen Yang
@ 2019-04-01  1:37   ` Wen Yang
  2019-04-01  1:37   ` Wen Yang
                     ` (5 subsequent siblings)
  6 siblings, 0 replies; 40+ messages in thread
From: Wen Yang @ 2019-04-01  1:37 UTC (permalink / raw)
  To: linux-kernel
  Cc: wang.yi59, Wen Yang, Rafael J. Wysocki, Viresh Kumar, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	NXP Linux Team, linux-pm, linux-arm-kernel

The call to of_node_get returns a node pointer with refcount
incremented thus it must be explicitly decremented after the last
usage.

Detected by coccinelle with the following warnings:
./drivers/cpufreq/imx6q-cpufreq.c:391:4-10: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 348, but without a corresponding object release within this function.
./drivers/cpufreq/imx6q-cpufreq.c:395:3-9: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 348, but without a corresponding object release within this function.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: NXP Linux Team <linux-imx@nxp.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
---
 drivers/cpufreq/imx6q-cpufreq.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c
index a4ff09f..3e17560 100644
--- a/drivers/cpufreq/imx6q-cpufreq.c
+++ b/drivers/cpufreq/imx6q-cpufreq.c
@@ -388,11 +388,11 @@ static int imx6q_cpufreq_probe(struct platform_device *pdev)
 		ret = imx6ul_opp_check_speed_grading(cpu_dev);
 		if (ret) {
 			if (ret == -EPROBE_DEFER)
-				return ret;
+				goto put_node;
 
 			dev_err(cpu_dev, "failed to read ocotp: %d\n",
 				ret);
-			return ret;
+			goto put_node;
 		}
 	} else {
 		imx6q_opp_check_speed_grading(cpu_dev);
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 40+ messages in thread

* [PATCH 2/7] cpufreq: imx6q: fix possible object reference leak
@ 2019-04-01  1:37   ` Wen Yang
  0 siblings, 0 replies; 40+ messages in thread
From: Wen Yang @ 2019-04-01  1:37 UTC (permalink / raw)
  To: linux-kernel
  Cc: wang.yi59, Fabio Estevam, linux-pm, Viresh Kumar, Sascha Hauer,
	Rafael J. Wysocki, NXP Linux Team, Pengutronix Kernel Team,
	Shawn Guo, Wen Yang, linux-arm-kernel

The call to of_node_get returns a node pointer with refcount
incremented thus it must be explicitly decremented after the last
usage.

Detected by coccinelle with the following warnings:
./drivers/cpufreq/imx6q-cpufreq.c:391:4-10: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 348, but without a corresponding object release within this function.
./drivers/cpufreq/imx6q-cpufreq.c:395:3-9: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 348, but without a corresponding object release within this function.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: NXP Linux Team <linux-imx@nxp.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
---
 drivers/cpufreq/imx6q-cpufreq.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c
index a4ff09f..3e17560 100644
--- a/drivers/cpufreq/imx6q-cpufreq.c
+++ b/drivers/cpufreq/imx6q-cpufreq.c
@@ -388,11 +388,11 @@ static int imx6q_cpufreq_probe(struct platform_device *pdev)
 		ret = imx6ul_opp_check_speed_grading(cpu_dev);
 		if (ret) {
 			if (ret == -EPROBE_DEFER)
-				return ret;
+				goto put_node;
 
 			dev_err(cpu_dev, "failed to read ocotp: %d\n",
 				ret);
-			return ret;
+			goto put_node;
 		}
 	} else {
 		imx6q_opp_check_speed_grading(cpu_dev);
-- 
2.9.5


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 40+ messages in thread

* [PATCH 3/7] cpufreq: kirkwood: fix possible object reference leak
  2019-04-01  1:37 [PATCH 0/7] fix possible object reference leaks in cpufreq Wen Yang
  2019-04-01  1:37   ` Wen Yang
  2019-04-01  1:37   ` Wen Yang
@ 2019-04-01  1:37 ` Wen Yang
  2019-04-03 13:17     ` Markus Elfring
  2019-04-01  1:37 ` [PATCH 4/7] cpufreq: maple: " Wen Yang
                   ` (3 subsequent siblings)
  6 siblings, 1 reply; 40+ messages in thread
From: Wen Yang @ 2019-04-01  1:37 UTC (permalink / raw)
  To: linux-kernel
  Cc: wang.yi59, Wen Yang, Rafael J. Wysocki, Viresh Kumar, linux-pm

The call to of_get_child_by_name returns a node pointer with refcount
incremented thus it must be explicitly decremented after the last
usage.

Detected by coccinelle with the following warnings:
./drivers/cpufreq/kirkwood-cpufreq.c:127:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 118, but without a corresponding object release within this function.
./drivers/cpufreq/kirkwood-cpufreq.c:133:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 118, but without a corresponding object release within this function.

and also do some cleanup:
- of_node_put(np);
- np = NULL;
...
of_node_put(np);

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
 drivers/cpufreq/kirkwood-cpufreq.c | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/drivers/cpufreq/kirkwood-cpufreq.c b/drivers/cpufreq/kirkwood-cpufreq.c
index c2dd43f..8d63a6dc 100644
--- a/drivers/cpufreq/kirkwood-cpufreq.c
+++ b/drivers/cpufreq/kirkwood-cpufreq.c
@@ -124,13 +124,14 @@ static int kirkwood_cpufreq_probe(struct platform_device *pdev)
 	priv.cpu_clk = of_clk_get_by_name(np, "cpu_clk");
 	if (IS_ERR(priv.cpu_clk)) {
 		dev_err(priv.dev, "Unable to get cpuclk\n");
-		return PTR_ERR(priv.cpu_clk);
+		err = PTR_ERR(priv.cpu_clk);
+		goto out_node;
 	}
 
 	err = clk_prepare_enable(priv.cpu_clk);
 	if (err) {
 		dev_err(priv.dev, "Unable to prepare cpuclk\n");
-		return err;
+		goto out_node;
 	}
 
 	kirkwood_freq_table[0].frequency = clk_get_rate(priv.cpu_clk) / 1000;
@@ -161,20 +162,22 @@ static int kirkwood_cpufreq_probe(struct platform_device *pdev)
 		goto out_ddr;
 	}
 
-	of_node_put(np);
-	np = NULL;
-
 	err = cpufreq_register_driver(&kirkwood_cpufreq_driver);
-	if (!err)
-		return 0;
+	if (err) {
+		dev_err(priv.dev, "Failed to register cpufreq driver\n");
+		goto out_powersave;
+	}
 
-	dev_err(priv.dev, "Failed to register cpufreq driver\n");
+	of_node_put(np);
+	return 0;
 
+out_powersave:
 	clk_disable_unprepare(priv.powersave_clk);
 out_ddr:
 	clk_disable_unprepare(priv.ddr_clk);
 out_cpu:
 	clk_disable_unprepare(priv.cpu_clk);
+out_node:
 	of_node_put(np);
 
 	return err;
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 40+ messages in thread

* [PATCH 4/7] cpufreq: maple: fix possible object reference leak
  2019-04-01  1:37 [PATCH 0/7] fix possible object reference leaks in cpufreq Wen Yang
                   ` (2 preceding siblings ...)
  2019-04-01  1:37 ` [PATCH 3/7] cpufreq: kirkwood: " Wen Yang
@ 2019-04-01  1:37 ` Wen Yang
  2019-04-03 13:50     ` Markus Elfring
  2019-04-01  1:37   ` Wen Yang
                   ` (2 subsequent siblings)
  6 siblings, 1 reply; 40+ messages in thread
From: Wen Yang @ 2019-04-01  1:37 UTC (permalink / raw)
  To: linux-kernel; +Cc: wang.yi59, Wen Yang, Rafael J. Wysocki

The call to of_cpu_device_node_get returns a node pointer with refcount
incremented thus it must be explicitly decremented after the last
usage.

Detected by coccinelle with the following warnings:
./drivers/cpufreq/maple-cpufreq.c:213:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 177, but without a corresponding object release within this function.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Viresh Kumar <viresh.kumar@linaro.org>
linux-pm@vger.kernel.org
linux-kernel@vger.kernel.org
---
 drivers/cpufreq/maple-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/cpufreq/maple-cpufreq.c b/drivers/cpufreq/maple-cpufreq.c
index d9df893..a05f134 100644
--- a/drivers/cpufreq/maple-cpufreq.c
+++ b/drivers/cpufreq/maple-cpufreq.c
@@ -210,7 +210,7 @@ static int __init maple_cpufreq_init(void)
 	 */
 	valp = of_get_property(cpunode, "clock-frequency", NULL);
 	if (!valp)
-		return -ENODEV;
+		goto bail_noprops;
 	max_freq = (*valp)/1000;
 	maple_cpu_freqs[0].frequency = max_freq;
 	maple_cpu_freqs[1].frequency = max_freq/2;
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 40+ messages in thread

* [PATCH 5/7] cpufreq/pasemi: fix possible object reference leak
  2019-04-01  1:37 [PATCH 0/7] fix possible object reference leaks in cpufreq Wen Yang
@ 2019-04-01  1:37   ` Wen Yang
  2019-04-01  1:37   ` Wen Yang
                     ` (5 subsequent siblings)
  6 siblings, 0 replies; 40+ messages in thread
From: Wen Yang @ 2019-04-01  1:37 UTC (permalink / raw)
  To: linux-kernel
  Cc: wang.yi59, Wen Yang, Rafael J. Wysocki, Viresh Kumar,
	linuxppc-dev, linux-pm

The call to of_get_cpu_node returns a node pointer with refcount
incremented thus it must be explicitly decremented after the last
usage.

Detected by coccinelle with the following warnings:
./drivers/cpufreq/pasemi-cpufreq.c:212:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 147, but without a corresponding object release within this function.
./drivers/cpufreq/pasemi-cpufreq.c:220:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 147, but without a corresponding object release within this function.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
 drivers/cpufreq/pasemi-cpufreq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/cpufreq/pasemi-cpufreq.c b/drivers/cpufreq/pasemi-cpufreq.c
index 75dfbd2..c7710c1 100644
--- a/drivers/cpufreq/pasemi-cpufreq.c
+++ b/drivers/cpufreq/pasemi-cpufreq.c
@@ -146,6 +146,7 @@ static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy)
 
 	cpu = of_get_cpu_node(policy->cpu, NULL);
 
+	of_node_put(cpu);
 	if (!cpu)
 		goto out;
 
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 40+ messages in thread

* [PATCH 5/7] cpufreq/pasemi: fix possible object reference leak
@ 2019-04-01  1:37   ` Wen Yang
  0 siblings, 0 replies; 40+ messages in thread
From: Wen Yang @ 2019-04-01  1:37 UTC (permalink / raw)
  To: linux-kernel
  Cc: wang.yi59, linux-pm, Viresh Kumar, Rafael J. Wysocki,
	linuxppc-dev, Wen Yang

The call to of_get_cpu_node returns a node pointer with refcount
incremented thus it must be explicitly decremented after the last
usage.

Detected by coccinelle with the following warnings:
./drivers/cpufreq/pasemi-cpufreq.c:212:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 147, but without a corresponding object release within this function.
./drivers/cpufreq/pasemi-cpufreq.c:220:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 147, but without a corresponding object release within this function.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
 drivers/cpufreq/pasemi-cpufreq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/cpufreq/pasemi-cpufreq.c b/drivers/cpufreq/pasemi-cpufreq.c
index 75dfbd2..c7710c1 100644
--- a/drivers/cpufreq/pasemi-cpufreq.c
+++ b/drivers/cpufreq/pasemi-cpufreq.c
@@ -146,6 +146,7 @@ static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy)
 
 	cpu = of_get_cpu_node(policy->cpu, NULL);
 
+	of_node_put(cpu);
 	if (!cpu)
 		goto out;
 
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 40+ messages in thread

* [PATCH 6/7] cpufreq: pmac32: fix possible object reference leak
  2019-04-01  1:37 [PATCH 0/7] fix possible object reference leaks in cpufreq Wen Yang
@ 2019-04-01  1:37   ` Wen Yang
  2019-04-01  1:37   ` Wen Yang
                     ` (5 subsequent siblings)
  6 siblings, 0 replies; 40+ messages in thread
From: Wen Yang @ 2019-04-01  1:37 UTC (permalink / raw)
  To: linux-kernel
  Cc: wang.yi59, Wen Yang, Rafael J. Wysocki, Viresh Kumar,
	Benjamin Herrenschmidt, Paul Mackerras, Michael Ellerman,
	linux-pm, linuxppc-dev

The call to of_find_node_by_name returns a node pointer with refcount
incremented thus it must be explicitly decremented after the last
usage.

Detected by coccinelle with the following warnings:
./drivers/cpufreq/pmac32-cpufreq.c:557:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 552, but without a corresponding object release within this function.
./drivers/cpufreq/pmac32-cpufreq.c:569:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 552, but without a corresponding object release within this function.
./drivers/cpufreq/pmac32-cpufreq.c:598:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 587, but without a corresponding object release within this function.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: linux-pm@vger.kernel.org
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-kernel@vger.kernel.org
---
 drivers/cpufreq/pmac32-cpufreq.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/cpufreq/pmac32-cpufreq.c b/drivers/cpufreq/pmac32-cpufreq.c
index 52f0d91..9b4ce2e 100644
--- a/drivers/cpufreq/pmac32-cpufreq.c
+++ b/drivers/cpufreq/pmac32-cpufreq.c
@@ -552,6 +552,7 @@ static int pmac_cpufreq_init_7447A(struct device_node *cpunode)
 	volt_gpio_np = of_find_node_by_name(NULL, "cpu-vcore-select");
 	if (volt_gpio_np)
 		voltage_gpio = read_gpio(volt_gpio_np);
+	of_node_put(volt_gpio_np);
 	if (!voltage_gpio){
 		pr_err("missing cpu-vcore-select gpio\n");
 		return 1;
@@ -588,6 +589,7 @@ static int pmac_cpufreq_init_750FX(struct device_node *cpunode)
 	if (volt_gpio_np)
 		voltage_gpio = read_gpio(volt_gpio_np);
 
+	of_node_put(volt_gpio_np);
 	pvr = mfspr(SPRN_PVR);
 	has_cpu_l2lve = !((pvr & 0xf00) == 0x100);
 
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 40+ messages in thread

* [PATCH 6/7] cpufreq: pmac32: fix possible object reference leak
@ 2019-04-01  1:37   ` Wen Yang
  0 siblings, 0 replies; 40+ messages in thread
From: Wen Yang @ 2019-04-01  1:37 UTC (permalink / raw)
  To: linux-kernel
  Cc: wang.yi59, linux-pm, Viresh Kumar, Rafael J. Wysocki,
	Paul Mackerras, linuxppc-dev, Wen Yang

The call to of_find_node_by_name returns a node pointer with refcount
incremented thus it must be explicitly decremented after the last
usage.

Detected by coccinelle with the following warnings:
./drivers/cpufreq/pmac32-cpufreq.c:557:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 552, but without a corresponding object release within this function.
./drivers/cpufreq/pmac32-cpufreq.c:569:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 552, but without a corresponding object release within this function.
./drivers/cpufreq/pmac32-cpufreq.c:598:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 587, but without a corresponding object release within this function.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: linux-pm@vger.kernel.org
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-kernel@vger.kernel.org
---
 drivers/cpufreq/pmac32-cpufreq.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/cpufreq/pmac32-cpufreq.c b/drivers/cpufreq/pmac32-cpufreq.c
index 52f0d91..9b4ce2e 100644
--- a/drivers/cpufreq/pmac32-cpufreq.c
+++ b/drivers/cpufreq/pmac32-cpufreq.c
@@ -552,6 +552,7 @@ static int pmac_cpufreq_init_7447A(struct device_node *cpunode)
 	volt_gpio_np = of_find_node_by_name(NULL, "cpu-vcore-select");
 	if (volt_gpio_np)
 		voltage_gpio = read_gpio(volt_gpio_np);
+	of_node_put(volt_gpio_np);
 	if (!voltage_gpio){
 		pr_err("missing cpu-vcore-select gpio\n");
 		return 1;
@@ -588,6 +589,7 @@ static int pmac_cpufreq_init_750FX(struct device_node *cpunode)
 	if (volt_gpio_np)
 		voltage_gpio = read_gpio(volt_gpio_np);
 
+	of_node_put(volt_gpio_np);
 	pvr = mfspr(SPRN_PVR);
 	has_cpu_l2lve = !((pvr & 0xf00) == 0x100);
 
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 40+ messages in thread

* [PATCH 7/7] cpufreq: ppc_cbe: fix possible object reference leak
  2019-04-01  1:37 [PATCH 0/7] fix possible object reference leaks in cpufreq Wen Yang
                   ` (5 preceding siblings ...)
  2019-04-01  1:37   ` Wen Yang
@ 2019-04-01  1:37 ` Wen Yang
  2019-04-02 10:43     ` Markus Elfring
  2019-04-02 12:50     ` Markus Elfring
  6 siblings, 2 replies; 40+ messages in thread
From: Wen Yang @ 2019-04-01  1:37 UTC (permalink / raw)
  To: linux-kernel
  Cc: wang.yi59, Wen Yang, Rafael J. Wysocki, Viresh Kumar, linux-pm

The call to of_get_cpu_node returns a node pointer with refcount
incremented thus it must be explicitly decremented after the last
usage.

Detected by coccinelle with the following warnings:
./drivers/cpufreq/ppc_cbe_cpufreq.c:89:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 76, but without a corresponding object release within this function.
./drivers/cpufreq/ppc_cbe_cpufreq.c:89:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 76, but without a corresponding object release within this function.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
 drivers/cpufreq/ppc_cbe_cpufreq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/cpufreq/ppc_cbe_cpufreq.c b/drivers/cpufreq/ppc_cbe_cpufreq.c
index 41a0f0b..8414c3a 100644
--- a/drivers/cpufreq/ppc_cbe_cpufreq.c
+++ b/drivers/cpufreq/ppc_cbe_cpufreq.c
@@ -86,6 +86,7 @@ static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy)
 	if (!cbe_get_cpu_pmd_regs(policy->cpu) ||
 	    !cbe_get_cpu_mic_tm_regs(policy->cpu)) {
 		pr_info("invalid CBE regs pointers for cpufreq\n");
+		of_node_put(cpu);
 		return -EINVAL;
 	}
 
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 40+ messages in thread

* Re: [PATCH 7/7] cpufreq: ppc_cbe: fix possible object reference leak
  2019-04-01  1:37 ` [PATCH 7/7] cpufreq: ppc_cbe: " Wen Yang
@ 2019-04-02 10:43     ` Markus Elfring
  2019-04-02 12:50     ` Markus Elfring
  1 sibling, 0 replies; 40+ messages in thread
From: Markus Elfring @ 2019-04-02 10:43 UTC (permalink / raw)
  To: Wen Yang, kernel-janitors
  Cc: linux-kernel, linux-pm, Rafael J. Wysocki, Viresh Kumar, Yi Wang

> The call to of_get_cpu_node returns a node pointer with refcount
> incremented thus it must be explicitly decremented after the last
> usage.

I would prefer a wording like the following.

A reference counter was incremented for a CPU node by a call of
the function “of_get_cpu_node”.
Thus decrement it after the last usage.


> Detected by coccinelle with the following warnings:

I wonder about the shown duplicate notification.
Can a single message be sufficient for the code search result
in this source file?

Regards,
Markus

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PATCH 7/7] cpufreq: ppc_cbe: fix possible object reference leak
@ 2019-04-02 10:43     ` Markus Elfring
  0 siblings, 0 replies; 40+ messages in thread
From: Markus Elfring @ 2019-04-02 10:43 UTC (permalink / raw)
  To: Wen Yang, kernel-janitors
  Cc: linux-kernel, linux-pm, Rafael J. Wysocki, Viresh Kumar, Yi Wang

> The call to of_get_cpu_node returns a node pointer with refcount
> incremented thus it must be explicitly decremented after the last
> usage.

I would prefer a wording like the following.

A reference counter was incremented for a CPU node by a call of
the function “of_get_cpu_node”.
Thus decrement it after the last usage.


> Detected by coccinelle with the following warnings:

I wonder about the shown duplicate notification.
Can a single message be sufficient for the code search result
in this source file?

Regards,
Markus

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PATCH 7/7] cpufreq: ppc_cbe: fix possible object reference leak
  2019-04-02 10:43     ` Markus Elfring
@ 2019-04-02 10:50       ` Julia Lawall
  -1 siblings, 0 replies; 40+ messages in thread
From: Julia Lawall @ 2019-04-02 10:50 UTC (permalink / raw)
  To: Markus Elfring
  Cc: Wen Yang, kernel-janitors, linux-kernel, linux-pm,
	Rafael J. Wysocki, Viresh Kumar, Yi Wang

[-- Attachment #1: Type: text/plain, Size: 728 bytes --]



On Tue, 2 Apr 2019, Markus Elfring wrote:

> > The call to of_get_cpu_node returns a node pointer with refcount
> > incremented thus it must be explicitly decremented after the last
> > usage.
>
> I would prefer a wording like the following.
>
> A reference counter was incremented for a CPU node by a call of
> the function “of_get_cpu_node”.
> Thus decrement it after the last usage.

The original log message seems perfectly clear.

>
>
> > Detected by coccinelle with the following warnings:
>
> I wonder about the shown duplicate notification.
> Can a single message be sufficient for the code search result
> in this source file?

Since you have removed the context, I have no idea what you are talking
about.

julia

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PATCH 7/7] cpufreq: ppc_cbe: fix possible object reference leak
@ 2019-04-02 10:50       ` Julia Lawall
  0 siblings, 0 replies; 40+ messages in thread
From: Julia Lawall @ 2019-04-02 10:50 UTC (permalink / raw)
  To: Markus Elfring
  Cc: Wen Yang, kernel-janitors, linux-kernel, linux-pm,
	Rafael J. Wysocki, Viresh Kumar, Yi Wang

[-- Attachment #1: Type: text/plain, Size: 728 bytes --]



On Tue, 2 Apr 2019, Markus Elfring wrote:

> > The call to of_get_cpu_node returns a node pointer with refcount
> > incremented thus it must be explicitly decremented after the last
> > usage.
>
> I would prefer a wording like the following.
>
> A reference counter was incremented for a CPU node by a call of
> the function “of_get_cpu_node”.
> Thus decrement it after the last usage.

The original log message seems perfectly clear.

>
>
> > Detected by coccinelle with the following warnings:
>
> I wonder about the shown duplicate notification.
> Can a single message be sufficient for the code search result
> in this source file?

Since you have removed the context, I have no idea what you are talking
about.

julia

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PATCH 7/7] cpufreq: ppc_cbe: fix possible object reference leak
  2019-04-01  1:37 ` [PATCH 7/7] cpufreq: ppc_cbe: " Wen Yang
@ 2019-04-02 12:50     ` Markus Elfring
  2019-04-02 12:50     ` Markus Elfring
  1 sibling, 0 replies; 40+ messages in thread
From: Markus Elfring @ 2019-04-02 12:50 UTC (permalink / raw)
  To: Wen Yang, kernel-janitors
  Cc: linux-kernel, linux-pm, Rafael J. Wysocki, Viresh Kumar, Yi Wang

> @@ -86,6 +86,7 @@ static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy)
>  	if (!cbe_get_cpu_pmd_regs(policy->cpu) ||
>  	    !cbe_get_cpu_mic_tm_regs(policy->cpu)) {
>  		pr_info("invalid CBE regs pointers for cpufreq\n");
> +		of_node_put(cpu);
>  		return -EINVAL;
>  	}

I have taken another look at the implementation of this function.
I find that the second statement “return -EINVAL” would need related
source code adjustments.
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/cpufreq/ppc_cbe_cpufreq.c?id=05d08e2995cbe6efdb993482ee0d38a77040861a#n96

How do you think about to complete the exception handling here?

Regards,
Markus

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PATCH 7/7] cpufreq: ppc_cbe: fix possible object reference leak
@ 2019-04-02 12:50     ` Markus Elfring
  0 siblings, 0 replies; 40+ messages in thread
From: Markus Elfring @ 2019-04-02 12:50 UTC (permalink / raw)
  To: Wen Yang, kernel-janitors
  Cc: linux-kernel, linux-pm, Rafael J. Wysocki, Viresh Kumar, Yi Wang

> @@ -86,6 +86,7 @@ static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy)
>  	if (!cbe_get_cpu_pmd_regs(policy->cpu) ||
>  	    !cbe_get_cpu_mic_tm_regs(policy->cpu)) {
>  		pr_info("invalid CBE regs pointers for cpufreq\n");
> +		of_node_put(cpu);
>  		return -EINVAL;
>  	}

I have taken another look at the implementation of this function.
I find that the second statement “return -EINVAL” would need related
source code adjustments.
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/cpufreq/ppc_cbe_cpufreq.c?id=05d08e2995cbe6efdb993482ee0d38a77040861a#n96

How do you think about to complete the exception handling here?

Regards,
Markus

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PATCH 7/7] cpufreq: ppc_cbe: fix possible object reference leak
  2019-04-02 12:50     ` Markus Elfring
@ 2019-04-02 13:15       ` Julia Lawall
  -1 siblings, 0 replies; 40+ messages in thread
From: Julia Lawall @ 2019-04-02 13:15 UTC (permalink / raw)
  To: Markus Elfring
  Cc: Wen Yang, kernel-janitors, linux-kernel, linux-pm,
	Rafael J. Wysocki, Viresh Kumar, Yi Wang

[-- Attachment #1: Type: text/plain, Size: 789 bytes --]



On Tue, 2 Apr 2019, Markus Elfring wrote:

> > @@ -86,6 +86,7 @@ static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy)
> >  	if (!cbe_get_cpu_pmd_regs(policy->cpu) ||
> >  	    !cbe_get_cpu_mic_tm_regs(policy->cpu)) {
> >  		pr_info("invalid CBE regs pointers for cpufreq\n");
> > +		of_node_put(cpu);
> >  		return -EINVAL;
> >  	}
>
> I have taken another look at the implementation of this function.
> I find that the second statement “return -EINVAL” would need related
> source code adjustments.
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/cpufreq/ppc_cbe_cpufreq.c?id=05d08e2995cbe6efdb993482ee0d38a77040861a#n96
>
> How do you think about to complete the exception handling here?

There is an of_node_put two lines above.

julia

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PATCH 7/7] cpufreq: ppc_cbe: fix possible object reference leak
@ 2019-04-02 13:15       ` Julia Lawall
  0 siblings, 0 replies; 40+ messages in thread
From: Julia Lawall @ 2019-04-02 13:15 UTC (permalink / raw)
  To: Markus Elfring
  Cc: Wen Yang, kernel-janitors, linux-kernel, linux-pm,
	Rafael J. Wysocki, Viresh Kumar, Yi Wang

[-- Attachment #1: Type: text/plain, Size: 789 bytes --]



On Tue, 2 Apr 2019, Markus Elfring wrote:

> > @@ -86,6 +86,7 @@ static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy)
> >  	if (!cbe_get_cpu_pmd_regs(policy->cpu) ||
> >  	    !cbe_get_cpu_mic_tm_regs(policy->cpu)) {
> >  		pr_info("invalid CBE regs pointers for cpufreq\n");
> > +		of_node_put(cpu);
> >  		return -EINVAL;
> >  	}
>
> I have taken another look at the implementation of this function.
> I find that the second statement “return -EINVAL” would need related
> source code adjustments.
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/cpufreq/ppc_cbe_cpufreq.c?id=05d08e2995cbe6efdb993482ee0d38a77040861a#n96
>
> How do you think about to complete the exception handling here?

There is an of_node_put two lines above.

julia

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [1/7] cpufreq: ap806: Checking implementation of armada_8k_cpufreq_init()
  2019-04-01  1:37   ` Wen Yang
  (?)
  (?)
@ 2019-04-02 13:54     ` Markus Elfring
  -1 siblings, 0 replies; 40+ messages in thread
From: Markus Elfring @ 2019-04-02 13:54 UTC (permalink / raw)
  To: Wen Yang, Gregory Clement, Viresh Kumar, kernel-janitors
  Cc: Andrew Lunn, Jason Cooper, linux-arm-kernel, linux-kernel,
	linux-pm, Rafael J. Wysocki, Sebastian Hesselbarth, Yi Wang

> @@ -132,6 +132,7 @@ static int __init armada_8k_cpufreq_init(void)
>  		of_node_put(node);
>  		return -ENODEV;
>  	}
> +	of_node_put(node);
>
>  	nb_cpus = num_possible_cpus();
>  	freq_tables = kcalloc(nb_cpus, sizeof(*freq_tables), GFP_KERNEL);

Would another null pointer check be safer for this memory allocation?
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/cpufreq/armada-8k-cpufreq.c?id=05d08e2995cbe6efdb993482ee0d38a77040861a#n137

Regards,
Markus

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [1/7] cpufreq: ap806: Checking implementation of armada_8k_cpufreq_init()
  2019-04-01  1:37   ` Wen Yang
  (?)
@ 2019-04-02 13:54     ` Markus Elfring
  -1 siblings, 0 replies; 40+ messages in thread
From: Markus Elfring @ 2019-04-02 13:54 UTC (permalink / raw)
  To: Wen Yang, Gregory Clement, Viresh Kumar, kernel-janitors
  Cc: Andrew Lunn, Jason Cooper, linux-arm-kernel, linux-kernel,
	linux-pm, Rafael J. Wysocki, Sebastian Hesselbarth, Yi Wang

> @@ -132,6 +132,7 @@ static int __init armada_8k_cpufreq_init(void)
>  		of_node_put(node);
>  		return -ENODEV;
>  	}
> +	of_node_put(node);
>
>  	nb_cpus = num_possible_cpus();
>  	freq_tables = kcalloc(nb_cpus, sizeof(*freq_tables), GFP_KERNEL);

Would another null pointer check be safer for this memory allocation?
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/cpufreq/armada-8k-cpufreq.c?id=05d08e2995cbe6efdb993482ee0d38a77040861a#n137

Regards,
Markus

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [1/7] cpufreq: ap806: Checking implementation of armada_8k_cpufreq_init()
@ 2019-04-02 13:54     ` Markus Elfring
  0 siblings, 0 replies; 40+ messages in thread
From: Markus Elfring @ 2019-04-02 13:54 UTC (permalink / raw)
  To: Wen Yang, Gregory Clement, Viresh Kumar, kernel-janitors
  Cc: Yi Wang, Andrew Lunn, Jason Cooper, linux-pm, Rafael J. Wysocki,
	linux-kernel, linux-arm-kernel, Sebastian Hesselbarth

> @@ -132,6 +132,7 @@ static int __init armada_8k_cpufreq_init(void)
>  		of_node_put(node);
>  		return -ENODEV;
>  	}
> +	of_node_put(node);
>
>  	nb_cpus = num_possible_cpus();
>  	freq_tables = kcalloc(nb_cpus, sizeof(*freq_tables), GFP_KERNEL);

Would another null pointer check be safer for this memory allocation?
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/cpufreq/armada-8k-cpufreq.c?id=05d08e2995cbe6efdb993482ee0d38a77040861a#n137

Regards,
Markus

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [1/7] cpufreq: ap806: Checking implementation of armada_8k_cpufreq_init()
@ 2019-04-02 13:54     ` Markus Elfring
  0 siblings, 0 replies; 40+ messages in thread
From: Markus Elfring @ 2019-04-02 13:54 UTC (permalink / raw)
  To: Wen Yang, Gregory Clement, Viresh Kumar, kernel-janitors
  Cc: Yi Wang, Andrew Lunn, Jason Cooper, linux-pm, Rafael J. Wysocki,
	linux-kernel, linux-arm-kernel, Sebastian Hesselbarth

> @@ -132,6 +132,7 @@ static int __init armada_8k_cpufreq_init(void)
>  		of_node_put(node);
>  		return -ENODEV;
>  	}
> +	of_node_put(node);
>
>  	nb_cpus = num_possible_cpus();
>  	freq_tables = kcalloc(nb_cpus, sizeof(*freq_tables), GFP_KERNEL);

Would another null pointer check be safer for this memory allocation?
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/cpufreq/armada-8k-cpufreq.c?id=05d08e2995cbe6efdb993482ee0d38a77040861a#n137

Regards,
Markus

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [1/7] cpufreq: ap806: Checking implementation of armada_8k_cpufreq_init()
@ 2019-04-02 13:54     ` Markus Elfring
  0 siblings, 0 replies; 40+ messages in thread
From: Markus Elfring @ 2019-04-02 13:54 UTC (permalink / raw)
  To: Wen Yang, Gregory Clement, Viresh Kumar, kernel-janitors
  Cc: Yi Wang, Andrew Lunn, Jason Cooper, linux-pm, Rafael J. Wysocki,
	linux-kernel, linux-arm-kernel, Sebastian Hesselbarth

> @@ -132,6 +132,7 @@ static int __init armada_8k_cpufreq_init(void)
>  		of_node_put(node);
>  		return -ENODEV;
>  	}
> +	of_node_put(node);
>
>  	nb_cpus = num_possible_cpus();
>  	freq_tables = kcalloc(nb_cpus, sizeof(*freq_tables), GFP_KERNEL);

Would another null pointer check be safer for this memory allocation?
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/cpufreq/armada-8k-cpufreq.c?id=05d08e2995cbe6efdb993482ee0d38a77040861a#n137

Regards,
Markus

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [1/7] cpufreq: ap806: Checking implementation of armada_8k_cpufreq_init()
@ 2019-04-02 13:54     ` Markus Elfring
  0 siblings, 0 replies; 40+ messages in thread
From: Markus Elfring @ 2019-04-02 13:54 UTC (permalink / raw)
  To: Wen Yang, Gregory Clement, Viresh Kumar, kernel-janitors
  Cc: Yi Wang, Andrew Lunn, Jason Cooper, linux-pm, Rafael J. Wysocki,
	linux-kernel, linux-arm-kernel, Sebastian Hesselbarth

> @@ -132,6 +132,7 @@ static int __init armada_8k_cpufreq_init(void)
>  		of_node_put(node);
>  		return -ENODEV;
>  	}
> +	of_node_put(node);
>
>  	nb_cpus = num_possible_cpus();
>  	freq_tables = kcalloc(nb_cpus, sizeof(*freq_tables), GFP_KERNEL);

Would another null pointer check be safer for this memory allocation?
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/cpufreq/armada-8k-cpufreq.c?id=05d08e2995cbe6efdb993482ee0d38a77040861a#n137

Regards,
Markus

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [1/7] cpufreq: ap806: Checking implementation of armada_8k_cpufreq_init()
@ 2019-04-02 13:54     ` Markus Elfring
  0 siblings, 0 replies; 40+ messages in thread
From: Markus Elfring @ 2019-04-02 13:54 UTC (permalink / raw)
  To: Wen Yang, Gregory Clement, Viresh Kumar, kernel-janitors
  Cc: Yi Wang, Andrew Lunn, Jason Cooper, linux-pm, Rafael J. Wysocki,
	linux-kernel, linux-arm-kernel, Sebastian Hesselbarth

> @@ -132,6 +132,7 @@ static int __init armada_8k_cpufreq_init(void)
>  		of_node_put(node);
>  		return -ENODEV;
>  	}
> +	of_node_put(node);
>
>  	nb_cpus = num_possible_cpus();
>  	freq_tables = kcalloc(nb_cpus, sizeof(*freq_tables), GFP_KERNEL);

Would another null pointer check be safer for this memory allocation?
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/cpufreq/armada-8k-cpufreq.c?id=05d08e2995cbe6efdb993482ee0d38a77040861a#n137

Regards,
Markus

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [3/7] cpufreq: kirkwood: fix possible object reference leak
  2019-04-01  1:37 ` [PATCH 3/7] cpufreq: kirkwood: " Wen Yang
@ 2019-04-03 13:17     ` Markus Elfring
  0 siblings, 0 replies; 40+ messages in thread
From: Markus Elfring @ 2019-04-03 13:17 UTC (permalink / raw)
  To: Wen Yang, kernel-janitors
  Cc: linux-kernel, linux-pm, Rafael J. Wysocki, Viresh Kumar, Yi Wang

> and also do some cleanup:

Would it be safer to integrate this source code adjustment
by another update step?

Regards,
Markus

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [3/7] cpufreq: kirkwood: fix possible object reference leak
@ 2019-04-03 13:17     ` Markus Elfring
  0 siblings, 0 replies; 40+ messages in thread
From: Markus Elfring @ 2019-04-03 13:17 UTC (permalink / raw)
  To: Wen Yang, kernel-janitors
  Cc: linux-kernel, linux-pm, Rafael J. Wysocki, Viresh Kumar, Yi Wang

> and also do some cleanup:

Would it be safer to integrate this source code adjustment
by another update step?

Regards,
Markus

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [4/7] cpufreq: maple: Checking implementation of maple_cpufreq_init()
  2019-04-01  1:37 ` [PATCH 4/7] cpufreq: maple: " Wen Yang
@ 2019-04-03 13:50     ` Markus Elfring
  0 siblings, 0 replies; 40+ messages in thread
From: Markus Elfring @ 2019-04-03 13:50 UTC (permalink / raw)
  To: Wen Yang, Rafael J. Wysocki, Viresh Kumar, kernel-janitors
  Cc: linux-kernel, linux-pm, Yi Wang

> @@ -210,7 +210,7 @@  static int __init maple_cpufreq_init(void)
>  	 */
>  	valp = of_get_property(cpunode, "clock-frequency", NULL);
>  	if (!valp)
> -		return -ENODEV;
> +		goto bail_noprops;
>  	max_freq = (*valp)/1000;
>  	maple_cpu_freqs[0].frequency = max_freq;
>  	maple_cpu_freqs[1].frequency = max_freq/2;

* How do you think about use the jump label “put_node” instead?

* Would you like to reduce a bit of duplicate source code at the end
  of this function?
  https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/cpufreq/maple-cpufreq.c?id=bf97b82f37c6d90e16de001d0659644c57fa490d#n232

Regards,
Markus

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [4/7] cpufreq: maple: Checking implementation of maple_cpufreq_init()
@ 2019-04-03 13:50     ` Markus Elfring
  0 siblings, 0 replies; 40+ messages in thread
From: Markus Elfring @ 2019-04-03 13:50 UTC (permalink / raw)
  To: Wen Yang, Rafael J. Wysocki, Viresh Kumar, kernel-janitors
  Cc: linux-kernel, linux-pm, Yi Wang

> @@ -210,7 +210,7 @@  static int __init maple_cpufreq_init(void)
>  	 */
>  	valp = of_get_property(cpunode, "clock-frequency", NULL);
>  	if (!valp)
> -		return -ENODEV;
> +		goto bail_noprops;
>  	max_freq = (*valp)/1000;
>  	maple_cpu_freqs[0].frequency = max_freq;
>  	maple_cpu_freqs[1].frequency = max_freq/2;

* How do you think about use the jump label “put_node” instead?

* Would you like to reduce a bit of duplicate source code at the end
  of this function?
  https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/cpufreq/maple-cpufreq.c?id=bf97b82f37c6d90e16de001d0659644c57fa490d#n232

Regards,
Markus

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [5/7] cpufreq/pasemi: Checking implementation of pas_cpufreq_cpu_init()
  2019-04-01  1:37   ` Wen Yang
  (?)
@ 2019-04-03 14:23     ` Markus Elfring
  -1 siblings, 0 replies; 40+ messages in thread
From: Markus Elfring @ 2019-04-03 14:23 UTC (permalink / raw)
  To: Wen Yang, Rafael J. Wysocki, Viresh Kumar, kernel-janitors
  Cc: linux-kernel, linux-pm, linuxppc-dev, Yi Wang

> @@ -146,6 +146,7 @@  static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy)
>
>  	cpu = of_get_cpu_node(policy->cpu, NULL);
>
> +	of_node_put(cpu);
>  	if (!cpu)
>  		goto out;

Can the statement “return -ENODEV” be nicer as exception handling
in the if branch of this source code place?
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/cpufreq/pasemi-cpufreq.c?id=bf97b82f37c6d90e16de001d0659644c57fa490d#n137

Regards,
Markus

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [5/7] cpufreq/pasemi: Checking implementation of pas_cpufreq_cpu_init()
@ 2019-04-03 14:23     ` Markus Elfring
  0 siblings, 0 replies; 40+ messages in thread
From: Markus Elfring @ 2019-04-03 14:23 UTC (permalink / raw)
  To: Wen Yang, Rafael J. Wysocki, Viresh Kumar, kernel-janitors
  Cc: linux-kernel, linux-pm, linuxppc-dev, Yi Wang

> @@ -146,6 +146,7 @@  static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy)
>
>  	cpu = of_get_cpu_node(policy->cpu, NULL);
>
> +	of_node_put(cpu);
>  	if (!cpu)
>  		goto out;

Can the statement “return -ENODEV” be nicer as exception handling
in the if branch of this source code place?
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/cpufreq/pasemi-cpufreq.c?id=bf97b82f37c6d90e16de001d0659644c57fa490d#n137

Regards,
Markus

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [5/7] cpufreq/pasemi: Checking implementation of pas_cpufreq_cpu_init()
@ 2019-04-03 14:23     ` Markus Elfring
  0 siblings, 0 replies; 40+ messages in thread
From: Markus Elfring @ 2019-04-03 14:23 UTC (permalink / raw)
  To: Wen Yang, Rafael J. Wysocki, Viresh Kumar, kernel-janitors
  Cc: Yi Wang, linuxppc-dev, linux-kernel, linux-pm

> @@ -146,6 +146,7 @@  static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy)
>
>  	cpu = of_get_cpu_node(policy->cpu, NULL);
>
> +	of_node_put(cpu);
>  	if (!cpu)
>  		goto out;

Can the statement “return -ENODEV” be nicer as exception handling
in the if branch of this source code place?
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/cpufreq/pasemi-cpufreq.c?id=bf97b82f37c6d90e16de001d0659644c57fa490d#n137

Regards,
Markus

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [5/7] cpufreq/pasemi: Checking implementation of pas_cpufreq_cpu_init()
  2019-04-03 14:23     ` Markus Elfring
  (?)
@ 2019-04-03 15:31       ` Dan Carpenter
  -1 siblings, 0 replies; 40+ messages in thread
From: Dan Carpenter @ 2019-04-03 15:31 UTC (permalink / raw)
  To: Markus Elfring
  Cc: Wen Yang, Rafael J. Wysocki, Viresh Kumar, kernel-janitors,
	linux-kernel, linux-pm, linuxppc-dev, Yi Wang

On Wed, Apr 03, 2019 at 04:23:54PM +0200, Markus Elfring wrote:
> > @@ -146,6 +146,7 @@  static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy)
> >
> >  	cpu = of_get_cpu_node(policy->cpu, NULL);
> >
> > +	of_node_put(cpu);
> >  	if (!cpu)
> >  		goto out;
> 
> Can the statement “return -ENODEV” be nicer as exception handling
> in the if branch of this source code place?
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/cpufreq/pasemi-cpufreq.c?id=bf97b82f37c6d90e16de001d0659644c57fa490d#n137
> 

Why am I only receiving only one side of this conversation?

I don't know why you're responding to...  It's not required to fix/change
unrelated style choices.  If people want, they can just focus on their
own thing.

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [5/7] cpufreq/pasemi: Checking implementation of pas_cpufreq_cpu_init()
@ 2019-04-03 15:31       ` Dan Carpenter
  0 siblings, 0 replies; 40+ messages in thread
From: Dan Carpenter @ 2019-04-03 15:31 UTC (permalink / raw)
  To: Markus Elfring
  Cc: Wen Yang, Rafael J. Wysocki, Viresh Kumar, kernel-janitors,
	linux-kernel, linux-pm, linuxppc-dev, Yi Wang

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1254", Size: 786 bytes --]

On Wed, Apr 03, 2019 at 04:23:54PM +0200, Markus Elfring wrote:
> > @@ -146,6 +146,7 @@  static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy)
> >
> >  	cpu = of_get_cpu_node(policy->cpu, NULL);
> >
> > +	of_node_put(cpu);
> >  	if (!cpu)
> >  		goto out;
> 
> Can the statement “return -ENODEV” be nicer as exception handling
> in the if branch of this source code place?
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/cpufreq/pasemi-cpufreq.c?id¿97b82f37c6d90e16de001d0659644c57fa490d#n137
> 

Why am I only receiving only one side of this conversation?

I don't know why you're responding to...  It's not required to fix/change
unrelated style choices.  If people want, they can just focus on their
own thing.

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [5/7] cpufreq/pasemi: Checking implementation of pas_cpufreq_cpu_init()
@ 2019-04-03 15:31       ` Dan Carpenter
  0 siblings, 0 replies; 40+ messages in thread
From: Dan Carpenter @ 2019-04-03 15:31 UTC (permalink / raw)
  To: Markus Elfring
  Cc: Yi Wang, Rafael J. Wysocki, linux-pm, Viresh Kumar,
	kernel-janitors, linux-kernel, linuxppc-dev, Wen Yang

On Wed, Apr 03, 2019 at 04:23:54PM +0200, Markus Elfring wrote:
> > @@ -146,6 +146,7 @@  static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy)
> >
> >  	cpu = of_get_cpu_node(policy->cpu, NULL);
> >
> > +	of_node_put(cpu);
> >  	if (!cpu)
> >  		goto out;
> 
> Can the statement “return -ENODEV” be nicer as exception handling
> in the if branch of this source code place?
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/cpufreq/pasemi-cpufreq.c?id=bf97b82f37c6d90e16de001d0659644c57fa490d#n137
> 

Why am I only receiving only one side of this conversation?

I don't know why you're responding to...  It's not required to fix/change
unrelated style choices.  If people want, they can just focus on their
own thing.

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PATCH 1/7] cpufreq: ap806: fix possible object reference leak
  2019-04-01  1:37   ` Wen Yang
@ 2019-04-08 10:21     ` Viresh Kumar
  -1 siblings, 0 replies; 40+ messages in thread
From: Viresh Kumar @ 2019-04-08 10:21 UTC (permalink / raw)
  To: Wen Yang
  Cc: linux-kernel, wang.yi59, Jason Cooper, Andrew Lunn,
	Gregory Clement, Sebastian Hesselbarth, Rafael J. Wysocki,
	linux-arm-kernel, linux-pm

On 01-04-19, 09:37, Wen Yang wrote:
> The call to of_find_compatible_node returns a node pointer with refcount
> incremented thus it must be explicitly decremented after the last
> usage.
> 
> Detected by coccinelle with the following warnings:
> ./drivers/cpufreq/armada-8k-cpufreq.c:187:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 130, but without a corresponding object release within this function.
> ./drivers/cpufreq/armada-8k-cpufreq.c:191:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 130, but without a corresponding object release within this function.
> 
> Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
> Cc: Jason Cooper <jason@lakedaemon.net>
> Cc: Andrew Lunn <andrew@lunn.ch>
> Cc: Gregory Clement <gregory.clement@bootlin.com>
> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
> Cc: Viresh Kumar <viresh.kumar@linaro.org>
> Cc: linux-arm-kernel@lists.infradead.org
> Cc: linux-pm@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> ---
>  drivers/cpufreq/armada-8k-cpufreq.c | 1 +
>  1 file changed, 1 insertion(+)

I haven't received the cover-letter and patch 4/7 (because the tags in that
commit were incorrect). I have applied all the 7 patches to my cpufreq tree
though.

Thanks.

-- 
viresh

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PATCH 1/7] cpufreq: ap806: fix possible object reference leak
@ 2019-04-08 10:21     ` Viresh Kumar
  0 siblings, 0 replies; 40+ messages in thread
From: Viresh Kumar @ 2019-04-08 10:21 UTC (permalink / raw)
  To: Wen Yang
  Cc: wang.yi59, Andrew Lunn, Jason Cooper, linux-pm, Gregory Clement,
	Rafael J. Wysocki, linux-kernel, linux-arm-kernel,
	Sebastian Hesselbarth

On 01-04-19, 09:37, Wen Yang wrote:
> The call to of_find_compatible_node returns a node pointer with refcount
> incremented thus it must be explicitly decremented after the last
> usage.
> 
> Detected by coccinelle with the following warnings:
> ./drivers/cpufreq/armada-8k-cpufreq.c:187:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 130, but without a corresponding object release within this function.
> ./drivers/cpufreq/armada-8k-cpufreq.c:191:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 130, but without a corresponding object release within this function.
> 
> Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
> Cc: Jason Cooper <jason@lakedaemon.net>
> Cc: Andrew Lunn <andrew@lunn.ch>
> Cc: Gregory Clement <gregory.clement@bootlin.com>
> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
> Cc: Viresh Kumar <viresh.kumar@linaro.org>
> Cc: linux-arm-kernel@lists.infradead.org
> Cc: linux-pm@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> ---
>  drivers/cpufreq/armada-8k-cpufreq.c | 1 +
>  1 file changed, 1 insertion(+)

I haven't received the cover-letter and patch 4/7 (because the tags in that
commit were incorrect). I have applied all the 7 patches to my cpufreq tree
though.

Thanks.

-- 
viresh

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2019-04-08 10:21 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-01  1:37 [PATCH 0/7] fix possible object reference leaks in cpufreq Wen Yang
2019-04-01  1:37 ` [PATCH 1/7] cpufreq: ap806: fix possible object reference leak Wen Yang
2019-04-01  1:37   ` Wen Yang
2019-04-01  1:37   ` Wen Yang
2019-04-02 13:54   ` [1/7] cpufreq: ap806: Checking implementation of armada_8k_cpufreq_init() Markus Elfring
2019-04-02 13:54     ` Markus Elfring
2019-04-02 13:54     ` Markus Elfring
2019-04-02 13:54   ` Markus Elfring
2019-04-02 13:54     ` Markus Elfring
2019-04-02 13:54     ` Markus Elfring
2019-04-02 13:54     ` Markus Elfring
2019-04-08 10:21   ` [PATCH 1/7] cpufreq: ap806: fix possible object reference leak Viresh Kumar
2019-04-08 10:21     ` Viresh Kumar
2019-04-01  1:37 ` [PATCH 2/7] cpufreq: imx6q: " Wen Yang
2019-04-01  1:37   ` Wen Yang
2019-04-01  1:37 ` [PATCH 3/7] cpufreq: kirkwood: " Wen Yang
2019-04-03 13:17   ` [3/7] " Markus Elfring
2019-04-03 13:17     ` Markus Elfring
2019-04-01  1:37 ` [PATCH 4/7] cpufreq: maple: " Wen Yang
2019-04-03 13:50   ` [4/7] cpufreq: maple: Checking implementation of maple_cpufreq_init() Markus Elfring
2019-04-03 13:50     ` Markus Elfring
2019-04-01  1:37 ` [PATCH 5/7] cpufreq/pasemi: fix possible object reference leak Wen Yang
2019-04-01  1:37   ` Wen Yang
2019-04-03 14:23   ` [5/7] cpufreq/pasemi: Checking implementation of pas_cpufreq_cpu_init() Markus Elfring
2019-04-03 14:23     ` Markus Elfring
2019-04-03 14:23     ` Markus Elfring
2019-04-03 15:31     ` Dan Carpenter
2019-04-03 15:31       ` Dan Carpenter
2019-04-03 15:31       ` Dan Carpenter
2019-04-01  1:37 ` [PATCH 6/7] cpufreq: pmac32: fix possible object reference leak Wen Yang
2019-04-01  1:37   ` Wen Yang
2019-04-01  1:37 ` [PATCH 7/7] cpufreq: ppc_cbe: " Wen Yang
2019-04-02 10:43   ` Markus Elfring
2019-04-02 10:43     ` Markus Elfring
2019-04-02 10:50     ` Julia Lawall
2019-04-02 10:50       ` Julia Lawall
2019-04-02 12:50   ` Markus Elfring
2019-04-02 12:50     ` Markus Elfring
2019-04-02 13:15     ` Julia Lawall
2019-04-02 13:15       ` Julia Lawall

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.