[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] credit2/cpupools: Fix crash
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1272973616 -3600 # Node ID 57d36cd633c3d38676cbd24af363faae118a1c8b # Parent d2373000996d850c46297740fbd11ea1d93d59d9 credit2/cpupools: Fix crash Signed-off-by: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx> --- xen/common/schedule.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -r d2373000996d -r 57d36cd633c3 xen/common/schedule.c --- a/xen/common/schedule.c Tue May 04 12:42:56 2010 +0100 +++ b/xen/common/schedule.c Tue May 04 12:46:56 2010 +0100 @@ -216,7 +216,8 @@ int sched_init_vcpu(struct vcpu *v, unsi 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); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |