All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clk: keystone: gate: fix clk_init_data initialization
@ 2014-01-30 11:37 ` Ivan Khoronzhuk
  0 siblings, 0 replies; 8+ messages in thread
From: Ivan Khoronzhuk @ 2014-01-30 11:37 UTC (permalink / raw)
  To: linux-arm-kernel

In clk_register_psc() function clk_init_data struct is allocated
in the stack. All members of this struct should be initialized
before using otherwise it will contain garbage. So initialize flags
in this structure too.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
---
 drivers/clk/keystone/gate.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/keystone/gate.c b/drivers/clk/keystone/gate.c
index 17a5983..86f1e36 100644
--- a/drivers/clk/keystone/gate.c
+++ b/drivers/clk/keystone/gate.c
@@ -179,6 +179,7 @@ static struct clk *clk_register_psc(struct device *dev,
 
 	init.name = name;
 	init.ops = &clk_psc_ops;
+	init.flags = 0;
 	init.parent_names = (parent_name ? &parent_name : NULL);
 	init.num_parents = (parent_name ? 1 : 0);
 
-- 
1.8.3.2

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

end of thread, other threads:[~2014-01-30 16:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-30 11:37 [PATCH] clk: keystone: gate: fix clk_init_data initialization Ivan Khoronzhuk
2014-01-30 11:37 ` Ivan Khoronzhuk
     [not found] ` <448912EABC71F84BBCADFD3C67C4BE52A0B4EB@DBDE04.ent.ti.com>
2014-01-30 13:49   ` Ivan Khoronzhuk
2014-01-30 13:49     ` Ivan Khoronzhuk
2014-01-30 14:32     ` Santosh Shilimkar
2014-01-30 14:32       ` Santosh Shilimkar
2014-01-30 16:56       ` Ivan Khoronzhuk
2014-01-30 16:56         ` Ivan Khoronzhuk

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.