]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
debugobjects: extend to assert that an object is initialized
authorChristine Chan <cschan@codeaurora.org>
Wed, 16 Nov 2011 23:41:11 +0000 (10:41 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 17 Nov 2011 02:53:22 +0000 (13:53 +1100)
commit181984b8f18ddebb1e0d00288b580f02004dd074
tree214c41be85e36d05acadcdd371a5799cebae5b8d
parent289ea6783811a30925a8c70d9a016c3b571887b3
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