diff options
author | Jeremy Cline <jeremy@jcline.org> | 2018-04-24 11:48:55 -0400 |
---|---|---|
committer | Jeremy Cline <jeremy@jcline.org> | 2018-04-24 11:48:55 -0400 |
commit | 83209239d180faca1316e6af6819e15e5a2dead2 (patch) | |
tree | d1ef458f418dc88e7ef8caa24aa51396e72c2dc7 /mvebu-a37xx-fixes.patch | |
parent | 279f39904e30c6dfda12f07d2ad47f36b6f77ba5 (diff) | |
download | kernel-83209239d180faca1316e6af6819e15e5a2dead2.tar.gz kernel-83209239d180faca1316e6af6819e15e5a2dead2.tar.xz kernel-83209239d180faca1316e6af6819e15e5a2dead2.zip |
Linux v4.16.4
Diffstat (limited to 'mvebu-a37xx-fixes.patch')
-rw-r--r-- | mvebu-a37xx-fixes.patch | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/mvebu-a37xx-fixes.patch b/mvebu-a37xx-fixes.patch index 25090c7fd..c4390ccfe 100644 --- a/mvebu-a37xx-fixes.patch +++ b/mvebu-a37xx-fixes.patch @@ -60,61 +60,6 @@ index 750e5645dc85..f503fab1e268 100644 } spin_unlock_irqrestore(&port->lock, flags); -From patchwork Wed Apr 4 14:44:44 2018 -Content-Type: text/plain; charset="utf-8" -MIME-Version: 1.0 -Content-Transfer-Encoding: 7bit -Subject: cpufreq: armada-37xx: Fix clock leak -From: Gregory CLEMENT <gregory.clement@bootlin.com> -X-Patchwork-Id: 10322649 -Message-Id: <20180404144444.4142-1-gregory.clement@bootlin.com> -To: "Rafael J. Wysocki" <rjw@rjwysocki.net>, - Viresh Kumar <viresh.kumar@linaro.org>, linux-pm@vger.kernel.org -Cc: Andrew Lunn <andrew@lunn.ch>, Jason Cooper <jason@lakedaemon.net>, - Hua Jing <jinghua@marvell.com>, - Antoine Tenart <antoine.tenart@bootlin.com>, - Gregory CLEMENT <gregory.clement@bootlin.com>, stable@vger.kernel.org, - Maxime Chevallier <maxime.chevallier@bootlin.com>, - Nadav Haklai <nadavh@marvell.com>, Victor Gu <xigu@marvell.com>, - Neta Zur Hershkovits <neta@marvell.com>, - Thomas Petazzoni <thomas.petazzoni@bootlin.com>, - =?UTF-8?q?Miqu=C3=A8l=20Raynal?= <miquel.raynal@bootlin.com>, - Marcin Wojtas <mw@semihalf.com>, Wilson Ding <dingwei@marvell.com>, - linux-arm-kernel@lists.infradead.org, - Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> -Date: Wed, 4 Apr 2018 16:44:44 +0200 - -There was no clk_put() balancing the clk_get(). This commit fixes it. - -Fixes: 92ce45fb875d ("cpufreq: Add DVFS support for Armada 37xx") -Cc: <stable@vger.kernel.org> -Reported-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> -Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com> -Acked-by: Viresh Kumar <viresh.kumar@linaro.org> ---- - drivers/cpufreq/armada-37xx-cpufreq.c | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/drivers/cpufreq/armada-37xx-cpufreq.c b/drivers/cpufreq/armada-37xx-cpufreq.c -index c6ebc88a7d8d..72a2975499db 100644 ---- a/drivers/cpufreq/armada-37xx-cpufreq.c -+++ b/drivers/cpufreq/armada-37xx-cpufreq.c -@@ -202,6 +202,7 @@ static int __init armada37xx_cpufreq_driver_init(void) - cur_frequency = clk_get_rate(clk); - if (!cur_frequency) { - dev_err(cpu_dev, "Failed to get clock rate for CPU\n"); -+ clk_put(clk); - return -EINVAL; - } - -@@ -210,6 +211,7 @@ static int __init armada37xx_cpufreq_driver_init(void) - return -EINVAL; - - armada37xx_cpufreq_dvfs_setup(nb_pm_base, clk, dvfs->divider); -+ clk_put(clk); - - for (load_lvl = ARMADA_37XX_DVFS_LOAD_0; load_lvl < LOAD_LEVEL_NR; - load_lvl++) { From patchwork Sun Mar 25 19:57:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 |