From: Akinobu Mita Date: Thu, 18 Oct 2007 10:05:15 +0000 (-0700) Subject: cpu hotplug: mce: fix cpu hotplug error handling X-Git-Tag: v2.6.24-rc1~405 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d435d862baca3e25e5eec236762a43251b1e7ffc;p=pandora-kernel.git cpu hotplug: mce: fix cpu hotplug error handling - Clear kobject in percpu device_mce before calling sysdev_register() with Because mce_create_device() may fail and it leaves kobject filled with junk. It will be the problem when mce_create_device() will be called next time. - Fix error handling in mce_create_device() Error handling should not do sysdev_remove_file() with not yet added attributes. - Don't register hotcpu notifier when mce_create_device() returns error - Do mce_create_device() in CPU_UP_PREPARE instead of CPU_ONLINE Cc: Andi Kleen Signed-off-by: Akinobu Mita Cc: Gautham R Shenoy Cc: Oleg Nesterov Cc: Andi Kleen Cc: Jan Beulich Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed