diff options
| author | Igor Mammedov <[email protected]> | 2013-05-14 16:46:06 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2013-05-21 10:14:40 -0700 |
| commit | c055da9fbad4b63bb3169f2b1a8b7ad429270bd0 (patch) | |
| tree | 5a861955edf614619a237e671a0d8a65c674612b /tools/perf/scripts/python/sctop.py | |
| parent | a4e2400a63f0e4fb6af5083a24d80b6fa4c41ccd (diff) | |
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 <[email protected]>
Tested-by: Konrad Rzeszutek Wilk <[email protected]>
Reviewed-by: Konrad Rzeszutek Wilk <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions