]> git.karo-electronics.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, 3 Aug 2011 00:52:42 +0000 (10:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 10 Aug 2011 01:50:36 +0000 (11:50 +1000)
commit8dab222115c2025a611ed8ccd5de8892b0120c13
tree3f5cde0531de5579d505915fc86d468e0ab9b85b
parentb2cfa038b9ac8e8c2ec0acd9b30c716a8a61c96f
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