diff options
Diffstat (limited to 'arch/x86/kernel/microcode_core.c')
| -rw-r--r-- | arch/x86/kernel/microcode_core.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/kernel/microcode_core.c b/arch/x86/kernel/microcode_core.c index 1cca374a2ba..87af68e0e1e 100644 --- a/arch/x86/kernel/microcode_core.c +++ b/arch/x86/kernel/microcode_core.c | |||
| @@ -417,8 +417,10 @@ static int mc_sysdev_add(struct sys_device *sys_dev) | |||
| 417 | if (err) | 417 | if (err) |
| 418 | return err; | 418 | return err; |
| 419 | 419 | ||
| 420 | if (microcode_init_cpu(cpu) == UCODE_ERROR) | 420 | if (microcode_init_cpu(cpu) == UCODE_ERROR) { |
| 421 | err = -EINVAL; | 421 | sysfs_remove_group(&sys_dev->kobj, &mc_attr_group); |
| 422 | return -EINVAL; | ||
| 423 | } | ||
| 422 | 424 | ||
| 423 | return err; | 425 | return err; |
| 424 | } | 426 | } |
