]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
x86/msr: Remove bogus cleanup from the error path
authorThomas Gleixner <tglx@linutronix.de>
Thu, 22 Dec 2016 09:32:38 +0000 (10:32 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 25 Dec 2016 09:47:41 +0000 (10:47 +0100)
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>
arch/x86/kernel/msr.c

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