diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2014-03-23 08:58:27 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-05-14 09:46:24 -0700 |
commit | 424c1b682051c48e1da24e503b96a8a72e114ea4 (patch) | |
tree | 1c4c6780b76d625a2d124580a87619d1bc7f1a94 /kernel/smpboot.h | |
parent | f0bf8fab4f311cffa869a462ffd182465c4caee6 (diff) | |
download | linux-424c1b682051c48e1da24e503b96a8a72e114ea4.tar.bz2 |
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>
Diffstat (limited to 'kernel/smpboot.h')
0 files changed, 0 insertions, 0 deletions