buggy usage of pm_idle by omap1 code

Nicolas Pitre nico at fluxnic.net
Fri Dec 16 22:24:55 EST 2011


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



More information about the linux-arm-kernel mailing list