Fix crash if some secondary CPUs cannot be initialised.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-01-24 11:04:22 +00:00
1 parent 539471abbe
commit a3dc5328a3
1 file changed
+3
+3
View File
@@ -129,6 +129,9 @@ struct vcpu *alloc_idle_vcpu(unsigned int cpu_id)
struct vcpu *v;
unsigned int vcpu_id = cpu_id % MAX_VIRT_CPUS;
if ( (v = idle_vcpu[cpu_id]) != NULL )
return v;
d = (vcpu_id == 0) ?
domain_create(IDLE_DOMAIN_ID, 0) :
idle_vcpu[cpu_id - vcpu_id]->domain;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.