lkml.org 
[lkml]   [2014]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 05/16] thermal: powerclamp: Add missing destroy_timer_on_stack()
Otherwise we leak a tracking object when DEBOG_OBJECTS is enabled.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Zhang Rui <rui.zhang@intel.com>
---
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;



\
 
 \ /
  Last update: 2014-03-23 17:01    [W:0.175 / U:24.732 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site