Skip to content

Commit

Permalink
x86/msr: Remove bogus cleanup from the error path
Browse files Browse the repository at this point in the history
The error cleanup which is invoked when the hotplug state setup failed
tries to remove the failed state, which is broken.

Fixes: 8fba38c ("x86/msr: Convert to hotplug state machine")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: Sebastian Siewior <[email protected]>
  • Loading branch information
KAGA-KOKO committed Dec 25, 2016
1 parent 26242b3 commit 59fefd0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/x86/kernel/msr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 59fefd0

Please sign in to comment.