diff options
Diffstat (limited to 'xen/common/schedule.c')
-rw-r--r-- | xen/common/schedule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/common/schedule.c b/xen/common/schedule.c index e9a8600b8d..c4ccc79997 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -595,8 +595,8 @@ int vcpu_set_affinity(struct vcpu *v, const cpumask_t *affinity) if ( v->domain->is_pinned ) return -EINVAL; online = VCPU2ONLINE(v); - cpus_and(online_affinity, *affinity, *online); - if ( cpus_empty(online_affinity) ) + cpumask_and(&online_affinity, affinity, online); + if ( cpumask_empty(&online_affinity) ) return -EINVAL; vcpu_schedule_lock_irq(v); |