]> 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, 16 Nov 2011 23:41:11 +0000 (10:41 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 18 Nov 2011 03:49:46 +0000 (14:49 +1100)
commit65608446d94b22b4e196d5426aa569f41838a578
treecb29c377b06e3a52c90579d7be4a95c53fe8627d
parentab7a1433eb13e1fe694949c23c26fbb04f78b7ff
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