Otherwise we leak a tracking object when DEBOG_OBJECTS is enabled.
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: Zhang Rui <[email protected]>
---
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/