From: Igor Mammedov Date: Tue, 14 May 2013 14:46:06 +0000 (+0200) Subject: cpu: fix "crash_notes" and "crash_notes_size" leaks in register_cpu() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~74^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c055da9fbad4b63bb3169f2b1a8b7ad429270bd0;p=pandora-kernel.git 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 Tested-by: Konrad Rzeszutek Wilk Reviewed-by: Konrad Rzeszutek Wilk Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed