The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* question about clk_hw_register_fixed_factor
@ 2016-09-20  6:15 Julia Lawall
  2016-09-20 17:31 ` Stephen Boyd
  0 siblings, 1 reply; 3+ messages in thread
From: Julia Lawall @ 2016-09-20  6:15 UTC (permalink / raw)
  To: mturquette, sboyd; +Cc: linux-clk, linux-kernel

Hello,

The function clk_hw_register_fixed_factor from
drivers/clk/clk-fixed-factor.c contains:

struct clk_init_data init;
...
fix->hw.init = &init;
...
hw = &fix->hw;
...
return hw;

It looks like hw would then contain a dangling pointer, to init.  Should
this be nulled out, or does it not matter because it is certain that no
one will look at it anyway?  Or did I miss a null assignment elsewhere?

thanks,
julia

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

end of thread, other threads:[~2016-09-20 17:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-20  6:15 question about clk_hw_register_fixed_factor Julia Lawall
2016-09-20 17:31 ` Stephen Boyd
2016-09-20 17:32   ` Julia Lawall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox