From: Tu, Xiaobing Date: Mon, 22 Oct 2012 23:03:00 +0000 (+0200) Subject: Fix memory leak in cpufreq stats. X-Git-Tag: v3.2.41~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8885a53947b37ab206c8e3d8ca30ee06cb179ddf;p=pandora-kernel.git Fix memory leak in cpufreq stats. commit e37736777254ce1abc85493a5cacbefe5983b896 upstream. When system enters sleep, non-boot CPUs will be disabled. Cpufreq stats sysfs is created when the CPU is up, but it is not freed when the CPU is going down. This will cause memory leak. Signed-off-by: xiaobing tu Signed-off-by: guifang tang Signed-off-by: Rafael J. Wysocki Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed