On 07/04/2012 07:15 AM, Prashant Gaikwad wrote:Just initializing i does not fix problem. The patch Mike has applied does two thingsCompiler optimizes code someway that even if clk->parentsIf simply inverting the if test and swapping the if/else blocks solves
is not NULL it tries to allocate parents array. Change the
condition so that compiler does not optimize it in wrong
way.
some problem, that sounds like a compiler bug that we need to track down
and file/fix.
Also, initialize i to num_parents to make sure parentAre you sure the change to initialize i wasn't all that was required to
is searched using parent name if parents is NULL.
solve the problem though? Mike has applied a patch for this that'll be
applied to 3.5-rcX and hence trickle into 3.6.