[patch 05/16] thermal: powerclamp: Add missing destroy_timer_on_stack()

From: Thomas Gleixner
Date: Sun Mar 23 2014 - 11:13:41 EST


Otherwise we leak a tracking object when DEBOG_OBJECTS is enabled.

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Cc: Zhang Rui <rui.zhang@xxxxxxxxx>
---
drivers/thermal/intel_powerclamp.c | 1 +
1 file changed, 1 insertion(+)

Index: tip/drivers/thermal/intel_powerclamp.c
===================================================================
--- tip.orig/drivers/thermal/intel_powerclamp.c
+++ tip/drivers/thermal/intel_powerclamp.c
@@ -455,6 +455,7 @@ static int clamp_thread(void *arg)
preempt_enable();
}
del_timer_sync(&wakeup_timer);
+ destroy_timer_on_stack(&wakeup_timer);
clear_bit(cpunr, cpu_clamping_mask);

return 0;


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/