public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Memory leak in acpi_processor_register_performance?
@ 2011-09-03 15:02 Diego Calleja
  0 siblings, 0 replies; only message in thread
From: Diego Calleja @ 2011-09-03 15:02 UTC (permalink / raw)
  To: linux-acpi

unreferenced object 0xffff880333240a90 (size 1024):
  comm "pm-suspend", pid 6658, jiffies 4299053388 (age 26684.732s)
  hex dump (first 32 bytes):
    49 0d 00 00 00 00 00 00 18 73 01 00 00 00 00 00  I........s......
    0a 00 00 00 00 00 00 00 0a 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff8168757c>] kmemleak_alloc+0x5c/0xc0
    [<ffffffff8114b703>] __kmalloc+0x213/0x2f0
    [<ffffffffa00681bd>] acpi_processor_register_performance+0x2ec/0x4f1 [processor]
    [<ffffffffa013d578>] acpi_cpufreq_cpu_init+0xd8/0x6b0 [acpi_cpufreq]
    [<ffffffff81537e9e>] cpufreq_add_dev+0x2be/0x6e0
    [<ffffffff816985ae>] cpufreq_cpu_callback+0x68/0x75
    [<ffffffff816aa254>] notifier_call_chain+0x94/0xe0
    [<ffffffff8107c6fe>] __raw_notifier_call_chain+0xe/0x10
    [<ffffffff81051460>] __cpu_notify+0x20/0x40
    [<ffffffff816963f1>] _cpu_up+0xc0/0x103
    [<ffffffff8168697c>] enable_nonboot_cpus+0x9c/0xd0
    [<ffffffff8109f2c1>] suspend_devices_and_enter+0x291/0x480
    [<ffffffff8109f5d1>] enter_state+0x121/0x150
    [<ffffffff8109e7b7>] state_store+0xb7/0xf0
    [<ffffffff812fb7df>] kobj_attr_store+0xf/0x30
    [<ffffffff811c9ed7>] sysfs_write_file+0xe7/0x170


Maybe this fixes it?


Signed-off-by: Diego Calleja <diegocg@gmail.com>
---
 drivers/acpi/processor_perflib.c |    1 +
 1 file changed, 1 insertion(+)

Index: linux/drivers/acpi/processor_perflib.c
===================================================================
--- linux.orig/drivers/acpi/processor_perflib.c
+++ linux/drivers/acpi/processor_perflib.c
@@ -380,6 +380,7 @@ static int acpi_processor_get_performanc
 		}
 	}
 
+	kfree(pr->performance->states);
       end:
 	kfree(buffer.pointer);
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-03 15:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-03 15:02 [PATCH] Memory leak in acpi_processor_register_performance? Diego Calleja

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox