]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
del_timer_sync() calls debug_object_assert_init() to assert that a timer
authorChristine Chan <cschan@codeaurora.org>
Wed, 24 Aug 2011 23:46:25 +0000 (09:46 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 15 Sep 2011 06:21:18 +0000 (16:21 +1000)
commitcb52c5db70b1ba7eee102e14a958303718a5b72e
treeaab57233aad6eb869f61eda33974eb9b3eaad624
parent837314dc24a0bdfe7ff69066c256017eac7f1d61
del_timer_sync() calls debug_object_assert_init() to assert that a timer
has been initialized before calling lock_timer_base().  lock_timer_base()
would spin forever on a NULL(uninit-ed) base.  The check is added to
del_timer() to prevent silent failure, even though it would not get stuck
in an infinite loop.

Signed-off-by: Christine Chan <cschan@codeaurora.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <john.stultz@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/timer.c