X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=linux_module%2Fpalacios-stubs.c;h=24993391a9f4a22295e8e96163b5387a8f0902d7;hp=21aa4fdf0bc3ba8ab096a2295b1805518f7def38;hb=f82ccce5ce7629dce6f1a6feee8b47fa13a6756d;hpb=0cfc0855d8a1fc9c6982ec2672c2bc4683eb4e2a diff --git a/linux_module/palacios-stubs.c b/linux_module/palacios-stubs.c index 21aa4fd..2499339 100644 --- a/linux_module/palacios-stubs.c +++ b/linux_module/palacios-stubs.c @@ -218,7 +218,11 @@ palacios_start_thread_on_cpu(int cpu_id, return NULL; } - set_cpus_allowed_ptr(thread, cpumask_of(cpu_id)); + if (set_cpus_allowed_ptr(thread, cpumask_of(cpu_id)) != 0) { + kthread_stop(thread); + return NULL; + } + wake_up_process(thread); return thread;