]> 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>
Tue, 22 Nov 2011 06:09:28 +0000 (17:09 +1100)
commitcc555f0b49af19b53e67a5afe1035048edd38386
tree92488b713d489187d055fc659c6f85247478ac16
parent674fe2feb53884d298165a5ec06af61364580dd3
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