diff options
| -rw-r--r-- | arch/x86/xen/enlighten.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index a2babdb13a26..31e19f97fb5a 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c | |||
| @@ -1646,6 +1646,9 @@ void __ref xen_hvm_init_shared_info(void) | |||
| 1646 | * online but xen_hvm_init_shared_info is run at resume time too and | 1646 | * online but xen_hvm_init_shared_info is run at resume time too and |
| 1647 | * in that case multiple vcpus might be online. */ | 1647 | * in that case multiple vcpus might be online. */ |
| 1648 | for_each_online_cpu(cpu) { | 1648 | for_each_online_cpu(cpu) { |
| 1649 | /* Leave it to be NULL. */ | ||
| 1650 | if (cpu >= MAX_VIRT_CPUS) | ||
| 1651 | continue; | ||
| 1649 | per_cpu(xen_vcpu, cpu) = &HYPERVISOR_shared_info->vcpu_info[cpu]; | 1652 | per_cpu(xen_vcpu, cpu) = &HYPERVISOR_shared_info->vcpu_info[cpu]; |
| 1650 | } | 1653 | } |
| 1651 | } | 1654 | } |
