projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2faa4bf
)
credit2/cpupools: Fix crash
author
Keir Fraser
<keir.fraser@citrix.com>
Tue, 4 May 2010 11:46:56 +0000
(12:46 +0100)
committer
Keir Fraser
<keir.fraser@citrix.com>
Tue, 4 May 2010 11:46:56 +0000
(12:46 +0100)
Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
xen/common/schedule.c
patch
|
blob
|
history
diff --git
a/xen/common/schedule.c
b/xen/common/schedule.c
index 9fd6e5c0610b76fae5a7962fc35aa6fcd43e4be6..52ca2b894426c21082bf76350ca1c7dbedc5c2d5 100644
(file)
--- a/
xen/common/schedule.c
+++ b/
xen/common/schedule.c
@@
-216,7
+216,8
@@
int sched_init_vcpu(struct vcpu *v, unsigned int processor)
TRACE_2D(TRC_SCHED_DOM_ADD, v->domain->domain_id, v->vcpu_id);
- if ( unlikely(per_cpu(schedule_data, v->processor).sched_priv == NULL) )
+ if ( unlikely(per_cpu(schedule_data, v->processor).sched_priv == NULL)
+ && (DOM2OP(d)->alloc_pdata != NULL) )
{
per_cpu(schedule_data, v->processor).sched_priv =
SCHED_OP(DOM2OP(d), alloc_pdata, processor);