x86/msr: Remove bogus cleanup from the error path

The error cleanup which is invoked when the hotplug state setup failed
tries to remove the failed state, which is broken.

Fixes: 8fba38c937 ("x86/msr: Convert to hotplug state machine")
Reported-by: kernel test robot <fengguang.wu@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Sebastian Siewior <bigeasy@linutronix.de>
This commit is contained in:
Thomas Gleixner 2016-12-22 10:32:38 +01:00
Родитель 26242b3300
Коммит 59fefd0890
1 изменённых файлов: 0 добавлений и 1 удалений

Просмотреть файл

@ -224,7 +224,6 @@ static int __init msr_init(void)
return 0; return 0;
out_class: out_class:
cpuhp_remove_state(cpuhp_msr_state);
class_destroy(msr_class); class_destroy(msr_class);
out_chrdev: out_chrdev:
__unregister_chrdev(MSR_MAJOR, 0, NR_CPUS, "cpu/msr"); __unregister_chrdev(MSR_MAJOR, 0, NR_CPUS, "cpu/msr");