Re: [PATCH 2/2] clk: Allow late cache allocation for clk->parents

From: Mike Turquette
Date: Tue Jun 12 2012 - 15:07:29 EST


On 20120606-14:41, Rajendra Nayak wrote:
> Parent clocks for muxes are cached in clk->parents to
> avoid frequent lookups, however the cache allocation happens
> only during clock registeration and later clk_set_parent()
> assumes a cache space available and allocated.
>
> This is not entirely true for platforms which do early clock
> registerations wherein the cache allocation using kzalloc
> could fail during clock registeration.
>
> Allow cache allocation to happen later as part of clk_set_parent()
> to help such cases and avoid crashes assuming a cache being
> available.
>
> While here also replace existing kmalloc() with kzalloc()
> in the file.
>
> Signed-off-by: Rajendra Nayak <rnayak@xxxxxx>

I've taken this patch into clk-next for testing.

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