linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* buggy usage of pm_idle by omap1 code
@ 2011-12-17  3:24 Nicolas Pitre
  2011-12-19 17:35 ` Tony Lindgren
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Pitre @ 2011-12-17  3:24 UTC (permalink / raw)
  To: linux-arm-kernel


I just noticed in mach-omap1/cpu.c:omap_pm_prepare() that the function 
pointer pm_idle is explicitly set to NULL for some vague reason.  
However this pointer is unconditionally dereferenced in 
kernel/process.c:cpu_idle().  This is just a oops waiting to happen.  
And if it doesn't happen in practice, then the code in omap_pm_prepare() 
must be useless in addition to being wrong.


Nicolas

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-12-19 23:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-17  3:24 buggy usage of pm_idle by omap1 code Nicolas Pitre
2011-12-19 17:35 ` Tony Lindgren
2011-12-19 17:44   ` Nicolas Pitre
2011-12-19 21:34   ` Russell King - ARM Linux
2011-12-19 23:04     ` Nicolas Pitre
2011-12-19 23:22       ` Tony Lindgren
2011-12-19 23:20     ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).