Skip to content

Commit 59fefd0

Browse files
committed
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: 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]>
1 parent 26242b3 commit 59fefd0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/x86/kernel/msr.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ static int __init msr_init(void)
224224
return 0;
225225

226226
out_class:
227-
cpuhp_remove_state(cpuhp_msr_state);
228227
class_destroy(msr_class);
229228
out_chrdev:
230229
__unregister_chrdev(MSR_MAJOR, 0, NR_CPUS, "cpu/msr");

0 commit comments

Comments
 (0)