Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ia64 idle: delete stale (*idle)() function pointer

Commit 3e7fc708eb41 ("ia64 idle: delete pm_idle") in 3.9-rc1 didn't
finish the job, leaving an un-initialized reference to (*idle)().

[ Haven't seen a crash from this - but seems like we are just being
lucky that "idle" is zero so it does get initialized before we jump to
randomland - Len ]

Reported-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Len Brown and committed by
Linus Torvalds
ed176886 67e17c11

+1 -4
+1 -4
arch/ia64/kernel/process.c
··· 291 291 } 292 292 293 293 if (!need_resched()) { 294 - void (*idle)(void); 295 294 #ifdef CONFIG_SMP 296 295 min_xtp(); 297 296 #endif ··· 298 299 if (mark_idle) 299 300 (*mark_idle)(1); 300 301 301 - if (!idle) 302 - idle = default_idle; 303 - (*idle)(); 302 + default_idle(); 304 303 if (mark_idle) 305 304 (*mark_idle)(0); 306 305 #ifdef CONFIG_SMP