diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2016-12-22 04:32:38 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-12-25 04:47:41 -0500 |
commit | 59fefd0890f12716b39de1d4e5482fd739316262 (patch) | |
tree | fa3707ffd6c5caae7395b8233479175e42af60b4 | |
parent | 26242b330093fd14c2e94fb6cbdf0f482ab26576 (diff) |
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: 8fba38c937cd ("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>
-rw-r--r-- | arch/x86/kernel/msr.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kernel/msr.c b/arch/x86/kernel/msr.c index f5e3ff835cc8..ef688804f80d 100644 --- a/arch/x86/kernel/msr.c +++ b/arch/x86/kernel/msr.c | |||
@@ -224,7 +224,6 @@ static int __init msr_init(void) | |||
224 | return 0; | 224 | return 0; |
225 | 225 | ||
226 | out_class: | 226 | out_class: |
227 | cpuhp_remove_state(cpuhp_msr_state); | ||
228 | class_destroy(msr_class); | 227 | class_destroy(msr_class); |
229 | out_chrdev: | 228 | out_chrdev: |
230 | __unregister_chrdev(MSR_MAJOR, 0, NR_CPUS, "cpu/msr"); | 229 | __unregister_chrdev(MSR_MAJOR, 0, NR_CPUS, "cpu/msr"); |