diff options
author | Igor Mammedov <imammedo@redhat.com> | 2013-05-14 16:46:06 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-21 10:14:40 -0700 |
commit | c055da9fbad4b63bb3169f2b1a8b7ad429270bd0 (patch) | |
tree | 5a861955edf614619a237e671a0d8a65c674612b /drivers/cpufreq/cpufreq_governor.h | |
parent | a4e2400a63f0e4fb6af5083a24d80b6fa4c41ccd (diff) | |
download | linux-c055da9fbad4b63bb3169f2b1a8b7ad429270bd0.tar.gz linux-c055da9fbad4b63bb3169f2b1a8b7ad429270bd0.tar.bz2 linux-c055da9fbad4b63bb3169f2b1a8b7ad429270bd0.zip |
cpu: fix "crash_notes" and "crash_notes_size" leaks in register_cpu()
"crash_notes" and "crash_notes_size" are dynamically created
with device_create_file() but aren't deleted anywhere.
Define "crash_notes" and "crash_notes_size" statically via
attribute groups so that device_register would create them
automatically and files would be destroyed when CPU is destroyed.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/cpufreq/cpufreq_governor.h')
0 files changed, 0 insertions, 0 deletions