del_timer_sync() calls debug_object_assert_init() to assert that a timer
commit56fb136bb7c30725750509165b34e668abf80550
authorChristine Chan <cschan@codeaurora.org>
Wed, 24 Aug 2011 23:46:25 +0000 (25 09:46 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 31 Aug 2011 04:27:23 +0000 (31 14:27 +1000)
treeb9bd80fa57fd8f448a7f9e199f952be2ba5f196e
parent9278b49c422e641b65cb73aef04275f203458625
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