From: Jan Beulich Date: Thu, 1 Jun 2017 08:49:53 +0000 (+0200) Subject: smp: assert that all affected CPUs are online in on_selected_cpus() X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~2100 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=02bcbb09fda25bb03e7269a2433e17c763e9d6f5;p=xen.git smp: assert that all affected CPUs are online in on_selected_cpus() Suggested-by: Boris Ostrovsky Signed-off-by: Jan Beulich Reviewed-by: Wei Liu Reviewed-by: Andrew Cooper --- diff --git a/xen/common/smp.c b/xen/common/smp.c index 482a203b02..79f4ebd145 100644 --- a/xen/common/smp.c +++ b/xen/common/smp.c @@ -53,6 +53,7 @@ void on_selected_cpus( unsigned int nr_cpus; ASSERT(local_irq_is_enabled()); + ASSERT(cpumask_subset(selected, &cpu_online_map)); spin_lock(&call_lock);