[PATCH 12/19] ARM: cam60: don't use __init for cam60_spi_{flash_platform_data, partitions}
avictor.za at gmail.com
avictor.za at gmail.com
Tue Aug 10 15:37:34 EDT 2010
hi Uwe,
> These two structs are referenced by cam60_spi_devices. The latter is
> copied at init time to kmalloced memory and so the copy isn't freed after
> booting. So it must not contain references to .init memory.
>
> This isn't noticed by modpost as cam60_spi_devices is in .init.data, too.
>
> Noticed-by: Andrew Victor <avictor.za at gmail.com>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
Acked-by: Andrew Victor <linux at maxim.org.za>
Please submit to Russell King's patch-system .
More information about the linux-arm-kernel
mailing list