[PATCH] clk: mxs: mx23, mx28: fix clock lookup after freeing init memory

Shawn Guo shawn.guo at linaro.org
Thu Jun 21 22:07:29 EDT 2012


On Thu, Jun 21, 2012 at 08:04:25PM +0200, Marc Kleine-Budde wrote:
> The struct clk_lookup are marked as __initdata, resulting in beeing
> removed from memory after the kernel finished booting. However this
> leads to a NULL pointer de-ref if loading a module which uses clk_get.
> 
> This patch removes the __initdata from the struct clk_lookup.
> 
> Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>

Thanks for the fixing.  Will try to send it for -rc together with
another fixing on imx28 clock code.

Regards,
Shawn




More information about the linux-arm-kernel mailing list