rcutorture: Add missing destroy_timer_on_stack()
authorThomas Gleixner <tglx@linutronix.de>
Sun, 23 Mar 2014 15:58:27 +0000 (08:58 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 14 May 2014 16:46:24 +0000 (09:46 -0700)
commit424c1b682051c48e1da24e503b96a8a72e114ea4
tree1c4c6780b76d625a2d124580a87619d1bc7f1a94
parentf0bf8fab4f311cffa869a462ffd182465c4caee6
rcutorture: Add missing destroy_timer_on_stack()

The rcu_torture_reader() function uses an on-stack timer_list structure
which it initializes with setup_timer_on_stack().  However, it fails to
use destroy_timer_on_stack() before exiting, which results in leaking a
tracking object if DEBUG_OBJECTS is enabled.  This commit therefore
invokes destroy_timer_on_stack() to avoid this leakage.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/rcutorture.c
This page took 0.026143 seconds and 5 git commands to generate.