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>] [day] [month] [year] [list]
Date:	Tue,  2 Aug 2011 09:07:15 +0200
From:	Lothar Waßmann <LW@...O-electronics.de>
To:	linux-kernel@...r.kernel.org
Cc:	Sascha Hauer <s.hauer@...gutronix.de>,
	linux-arm-kernel@...ts.infradead.org,
	Lothar Waßmann <LW@...O-electronics.de>
Subject: [PATCH] disable the correct parent clock in clk_gate_disable()

Calling clk_parent_disable() on the parent clock goes one step too far
up the clock hierarchy.

Signed-off-by: Lothar Waßmann <LW@...O-electronics.de>
---
 drivers/clk/clk-gate.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/drivers/clk/clk-gate.c b/drivers/clk/clk-gate.c
index a10d8e3..712960a 100644
--- a/drivers/clk/clk-gate.c
+++ b/drivers/clk/clk-gate.c
@@ -90,9 +90,7 @@ static void clk_gate_disable(struct clk *clk)
 	struct clk_gate *gate = to_clk_gate(clk);
 
 	gate->disable(gate);
-
-	if (gate->parent)
-		clk_parent_disable(gate->parent);
+	clk_parent_disable(clk);
 }
 
 static struct clk *clk_gate_get_parent(struct clk *clk)
-- 
1.5.6.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ