]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kernel/timer.c: use debugobjects to catch deletion of uninitialized timers
authorChristine Chan <cschan@codeaurora.org>
Wed, 28 Sep 2011 00:49:46 +0000 (10:49 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 30 Sep 2011 04:53:12 +0000 (14:53 +1000)
commita853d058f8088a91724703ce75a1ded6052e0009
treeee87bcc008d23f166b81c04c2198994f3a1c3b1a
parent9d60a3489ad36d101c9c415f04c94fd944a94f0d
kernel/timer.c: use debugobjects to catch deletion of uninitialized timers

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 <>
kernel/timer.c