credit2/cpupools: Fix crash

Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
This commit is contained in:
Keir Fraser committed 2010-05-04 12:46:56 +01:00
1 parent 2faa4bfdea
commit 3ede2e7135
1 file changed
+2 -1
+2 -1
View File
@@ -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);
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.