Message ID | 20220209080214.1439408-2-bigeasy@linutronix.de (mailing list archive) |
---|---|
State | Accepted |
Commit | e8a69f12f01f487c6a0e704eb14ccf2dd015277d |
Headers | show |
Series | cpu/hotplug: Allow the CPU in CPU_UP_PREPARE state to be brought up again. | expand |
diff --git a/arch/x86/xen/smp_pv.c b/arch/x86/xen/smp_pv.c index 4a6019238ee7d..57c3f9332ec94 100644 --- a/arch/x86/xen/smp_pv.c +++ b/arch/x86/xen/smp_pv.c @@ -260,8 +260,11 @@ cpu_initialize_context(unsigned int cpu, struct task_struct *idle) return 0; ctxt = kzalloc(sizeof(*ctxt), GFP_KERNEL); - if (ctxt == NULL) + if (ctxt == NULL) { + cpumask_clear_cpu(cpu, xen_cpu_initialized_map); + cpumask_clear_cpu(cpu, cpu_callout_mask); return -ENOMEM; + } gdt = get_cpu_gdt_rw(cpu);