Thread (4 messages) flat view 4 messages, 3 authors, 2011-07-01

[RESEND] [PATCH 3.0] OMAP: drop __initdata tags from static struct platform_device declarations

From: tony@atomide.com (Tony Lindgren)
Date: 2011-07-01 07:12:27
Also in: linux-omap

* Janusz Krzysztofik [off-list ref] [110616 18:15]:
Pointers to statically declared platform device structures which are 
registered with platform_device_register() are then used during run time 
to access these structure members, for example from platform_uevent() 
and much more. Therefore, these structures should never be placed inside 
sections which are dropped after boot. Fix platform devices incorrectly 
tagged with __initdata which happen to exist inside OMAP sub-trees.

This bug has exhibited itself on my ARM/OMAP1 based Amstrad Delta 
videophone after commit 6d3163ce86dd386b4f7bda80241d7fea2bc0bb1d, "mm: 
check if any page in a pageblock is reserved before marking it 
MIGRATE_RESERVE", resulting in reading from several 
/sys/device/platform/*/uevent files always ending up with segmentation 
faults.
Thanks applying into devel-fixes.

Tony
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help