]> git.karo-electronics.de Git - karo-tx-linux.git/commit
debugobjects: extend to assert that an object is initialized
authorChristine Chan <cschan@codeaurora.org>
Wed, 30 Nov 2011 04:07:56 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 30 Nov 2011 04:13:41 +0000 (15:13 +1100)
commit8a849aa452d9a809ff2a20d21c80ebbbad6befbd
treec94b159028c4fdba77a13532c442b320a22ab331
parent8b6a6308e076606d847d6c5625f9002c6a6a9ecb
debugobjects: extend to assert that an object is initialized

Calling del_timer_sync() on an uninitialized timer leads to a never ending
loop in lock_timer_base() that spins checking for a non-NULL timer base.
Add an assertion to debugobjects to catch usage of uninitialized objects
so that we can initialize timers in the del_timer_sync() path before it
calls lock_timer_base().

[sboyd@codeaurora.org: clarify commit message]
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>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/DocBook/debugobjects.tmpl
include/linux/debugobjects.h
lib/debugobjects.c